Documentation
¶
Index ¶
- Constants
- Variables
- func Delete(flag string) (err error)
- func Get(flag string) (value interface{}, err error)
- func GetOrNag(flag string) (value interface{})
- func GetPermitted() (permitted []string)
- func NagsOff() (err error)
- func NagsOn() (err error)
- func Set(flag string, value interface{}) (err error)
- type AllFlags
Constants ¶
View Source
const DefFlagsKey = "defaults"
View Source
const DefaultFlagsFileKey = "liquidweb.flags.defaults.file"
View Source
const NagsKey = "nags"
Variables ¶
View Source
var ErrorFileKeyMissing = errors.New("flag defaults file key is missing")
View Source
var ErrorForbiddenFlag = errors.New("is a forbidden default flag")
View Source
var ErrorInvalidFlagName = errors.New("the given flag name is invalid")
View Source
var ErrorNotFound = errors.New("flag default not found")
View Source
var ErrorUnreadable = errors.New("flag defaults cannot be read")
View Source
var ErrorUnwritable = errors.New("flag defaults cannot be written")
Functions ¶
func GetPermitted ¶
func GetPermitted() (permitted []string)
Types ¶
Click to show internal directories.
Click to hide internal directories.