Skip to content

Commit

Permalink
Merge pull request #134 from mattes/expose-isset-via-getter
Browse files Browse the repository at this point in the history
expose isSet via getter
  • Loading branch information
jessevdk committed Jun 27, 2015
2 parents 5e11878 + 3c2a20f commit f25cb1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f25cb1a

Please sign in to comment.