defaults

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Delete

func Delete(flag string) (err error)

func Get

func Get(flag string) (value interface{}, err error)

func GetOrNag

func GetOrNag(flag string) (value interface{})

func GetPermitted

func GetPermitted() (permitted []string)

func NagsOff

func NagsOff() (err error)

func NagsOn

func NagsOn() (err error)

func Set

func Set(flag string, value interface{}) (err error)

Types

type AllFlags

type AllFlags map[string]interface{}

func GetAll

func GetAll() (all AllFlags, err error)

func (AllFlags) String

func (self AllFlags) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL