Documentation
¶
Overview ¶
Package utils provides type-coercion helpers used to convert loosely-typed input values (from tags, env vars, decoded config) into concrete field types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBool ¶
ParseBool reports whether val is a truthy string ("true", "yes", "1", case-insensitive) everything else, including unrecognized input, is false.
func ToAnySlice ¶
ToAnySlice converts a slice value to []any. []any and []string are handled directly a non-empty string becomes a single-element slice any other slice is converted element-wise via reflection. Non-slice types return an error.
func ToFloat ¶
ToFloat converts a numeric or numeric-string value to a float64. It returns an error for unsupported types or unparseable strings.
Types ¶
This section is empty.