All Tools
C
Dev ToolsFreeOpen Source
CAST
Easy, safe casting between Go types
MIT
ABOUT
Agent configs and model metadata often arrive as untyped maps from YAML or JSON. Type assertions panic or return zero values silently. Cast converts those values to concrete types with optional errors so loaders stay explicit instead of guessing.
INSTALL
go get github.com/spf13/castINTEGRATION GUIDE
1. Convert YAML config keys for model name, temperature, and batch size
2. Parse mixed-type maps from tool-calling payloads into Go structs
3. Use ToStringE and ToIntE to distinguish missing values from zeros
4. Load feature flags and timeouts from environment-backed config maps
TAGS
gotypesconfigyamlconversion