MCPcopy
hub / github.com/spf13/viper / BindFlagValue

Function BindFlagValue

viper.go:1095–1095  ·  view source on GitHub ↗

BindFlagValue binds a specific key to a FlagValue.

(key string, flag FlagValue)

Source from the content-addressed store, hash-verified

1093
1094// BindFlagValue binds a specific key to a FlagValue.
1095func BindFlagValue(key string, flag FlagValue) error { return v.BindFlagValue(key, flag) }
1096
1097func (v *Viper) BindFlagValue(key string, flag FlagValue) error {
1098 if flag == nil {

Callers 1

TestBindFlagValueFunction · 0.85

Calls 1

BindFlagValueMethod · 0.80

Tested by 1

TestBindFlagValueFunction · 0.68