Documentation ¶
Index ¶
- Variables
- func Expand(v interface{}, values model.Values) (interface{}, bool, error)
- func ExpandEnvVars(s string) (string, error)
- func GetBoolEnv(v interface{}) (bool, error)
- func GetEnumEnv(v interface{}, allowed []EnumEnvAllowedValues) (int, error)
- func NormalizeEOL(data []byte) []byte
- func RemoveComments(data []byte) []byte
- func Str2Bool(s string) (value bool, ok bool)
- func ToBool(v interface{}) (value bool, isNil bool, ok bool)
- func ToFloat(v interface{}) (value float64, isNil bool, overflow bool, ok bool)
- func ToInt(v interface{}, bitSize int) (value int64, isNil bool, overflow bool, ok bool)
- func ToString(v interface{}) (value string, isNil bool, ok bool)
- func ToUint(v interface{}, bitSize int) (value uint64, isNil bool, overflow bool, ok bool)
- type EnumEnvAllowedValues
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIsNil = errors.New("nil pointer")
)
Functions ¶
func ExpandEnvVars ¶ added in v0.2.0
ExpandEnvVars expands environment variables
func GetBoolEnv ¶
GetBoolEnv returns a boolean value based on the provided input
func GetEnumEnv ¶
func GetEnumEnv(v interface{}, allowed []EnumEnvAllowedValues) (int, error)
GetEnumEnv returns an integer value based on the provided input
func NormalizeEOL ¶ added in v0.2.0
func RemoveComments ¶ added in v0.2.0
Types ¶
type EnumEnvAllowedValues ¶
Click to show internal directories.
Click to hide internal directories.