Documentation
¶
Overview ¶
Package stringx provides string formatting and stringification primitives for CLI values.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stringify ¶
Stringify converts any value into its canonical string representation, applying zero-allocation and reflection-free fast paths for string, boolean, numeric, and standard CLI types.
encoding.TextMarshaler takes precedence over fmt.Stringer, as in flag.TextVar and log/slog: MarshalText is the inverse of the UnmarshalText that coercion parses with, so the result parses back into the same value (time.Time renders as RFC 3339, not its String form). When MarshalText fails, a fmt.Stringer implementation is used instead. Both are checked for typed nil pointers before being called.
Types ¶
This section is empty.