From 3c2a20ff44662f7a703701df397255ecc63fae0b Mon Sep 17 00:00:00 2001 From: mattes Date: Fri, 27 Mar 2015 00:41:38 +0100 Subject: [PATCH] expose isSet --- option.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/option.go b/option.go index 29e702c..d337a62 100644 --- a/option.go +++ b/option.go @@ -155,3 +155,8 @@ func (option *Option) String() string { func (option *Option) Value() interface{} { return option.value.Interface() } + +// IsSet returns true if option has been set +func (option *Option) IsSet() bool { + return option.isSet +}