Documentation
¶
Index ¶
- func Assert(name string) string
- func AssertAndParse[T any](name string, parse func(val string) T) T
- func Bool(name string) bool
- func Int[T constraints.Integer](name string) T
- func IntWithDefault[T constraints.Integer](name string, def T) T
- func Maybe(name string) *string
- func Parse[T any](name string, parse func(val string) T) T
- func WithDefault(name string, def string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAndParse ¶
func Int ¶
func Int[T constraints.Integer](name string) T
func IntWithDefault ¶
func IntWithDefault[T constraints.Integer](name string, def T) T
func WithDefault ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.