Documentation
¶
Overview ¶
Package internal provides internal implementation logic for environment variables parsing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Complex ¶ added in v1.9.0
type Complex interface {
complex64 | []complex64 | complex128 | []complex128
}
Complex is a constraint for complex and slice of complex.
type EnvParsable ¶
EnvParsable is a constraint for types that can be parsed from environment variable.
type EnvParser ¶
type EnvParser interface {
// ParseEnv parses environment variable by key and returns value.
ParseEnv(key string, defaltVal any, options Parameters) any
}
EnvParser interface for parsing environment variables.
type Int ¶
type Int interface {
int | []int | int8 | []int8 | int16 | []int16 | int32 | []int32 | int64 | []int64
}
Int is a constraint for integer and slice of integers.
type Parameters ¶
Parameters is a struct for holding parameters for the parser. It is used to pass parameters to the parser. Separator is a separator for the environment variable that holds slice. Layout is a layout for the time.Time.
Click to show internal directories.
Click to hide internal directories.