func (self *Options) Bool(key string) bool { value, err := cast.ToBoolE(self.Interface(key)) if err != nil { self.log.Printf("%s for key '%s'", err.Error(), key) } return value }
func (c *Configr) Bool(key string) (bool, error) { val, err := c.Get(key) if err != nil { return false, err } return cast.ToBoolE(val) }