Versions in this module Expand all Collapse all v1 v1.0.0 Jul 20, 2024 Changes in this version + var ErrNilPointer = errors.New("nil pointer") + var ErrNotPointer = errors.New("not a pointer") + var ErrNotStringMarshaler = errors.New("not a StringMarshaler") + var ErrNotStringUnmarshaler = errors.New("not a StringUnmarshaler") + var ErrTypeMismatch = errors.New("type mismatch") + var ErrUnsupportedType = errors.New("unsupported type") + type AnyStringableAdaptor func(any) (Stringable, error) + func ToAnyStringableAdaptor[T any](adapt StringableAdaptor[T]) (reflect.Type, AnyStringableAdaptor) + type Namespace struct + func NewNamespace() *Namespace + func (c *Namespace) Adapt(typ reflect.Type, adaptor AnyStringableAdaptor) + func (c *Namespace) New(v any, opts ...Option) (Stringable, error) + type Option func(o *options) + func CompleteHybrid() Option + func NoHybrid() Option + type StringMarshaler interface + ToString func() (string, error) + type StringUnmarshaler interface + FromString func(string) error + type Stringable interface + func New(v any) (Stringable, error) + type StringableAdaptor func(*T) (Stringable, error)