commit | f25cb1ae2a77fe6188998dff800323b07c20ecfd | [log] [tgz] |
---|---|---|
author | Jesse van den Kieboom <jessevdk@gmail.com> | Sat Jun 27 17:01:57 2015 +0200 |
committer | Jesse van den Kieboom <jessevdk@gmail.com> | Sat Jun 27 17:01:57 2015 +0200 |
tree | d7f778391a8b4f8f9ce08028c69502fa584ddcef | |
parent | 5e118789801496c93ba210d34ef1f2ce5a9173bd [diff] | |
parent | 3c2a20ff44662f7a703701df397255ecc63fae0b [diff] |
Merge pull request #134 from mattes/expose-isset-via-getter expose isSet via getter
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) Value() interface{} { return option.value.Interface() } + +// IsSet returns true if option has been set +func (option *Option) IsSet() bool { + return option.isSet +}