Versions in this module Expand all Collapse all v1 v1.1.0 Apr 30, 2026 v1.0.0 Apr 29, 2026 Changes in this version + type Converter interface + Decode func(v any) error + Encode func(v any) (any, error) + type ConverterFactory func() Converter + type NamingStrategy int + const CamelCase + const PascalCase + const SnakeCase + type Option func(*Policy) + func WithCustomType(typ reflect.Type, factory ConverterFactory) Option + func WithIgnoreNil() Option + func WithIgnoreZero() Option + func WithNaming(n NamingStrategy) Option + func WithTagName(tag string) Option + type Policy struct + func New(opts ...Option) *Policy + func (p *Policy) Marshal(v any) ([]byte, error) + func (p *Policy) MarshalToString(v any) (string, error) + func (p *Policy) Unmarshal(data []byte, v any) error