Versions in this module Expand all Collapse all v0 v0.260.0 Oct 26, 2026 Changes in this version + var ErrUnsupportedTokenIntoType = errors.New("sdin.UnsupportedTokenIntoType") + func Marshal(v any) string + func Tokenizable(v any) bool + func Unmarshal[T any](s string) (T, error) + type BareToken string + type Identifier string + type Interface interface + FromSDINNode func(*Node) error + FromSDINToken func(Token) error + IntoSDINNode func() *Node + IntoSDINToken func() Token + type Kind string + func (k Kind) Bare() bool + func (k Kind) Closing() bool + func (k Kind) ComplementByte() byte + func (k Kind) Composite() bool + func (k Kind) Flat() bool + func (k Kind) Form() bool + func (k Kind) FormName() string + func (k Kind) Identifier() bool + func (k Kind) IdentifierPath() bool + func (k Kind) List() bool + func (k Kind) Name() bool + func (k Kind) Nested() bool + func (k Kind) OpenerByte() byte + func (k Kind) Opening() bool + func (k Kind) PackageName() string + func (k Kind) Scalar() bool + func (k Kind) String() bool + func (k Kind) Struct() bool + func (k Kind) Trivia() bool + type Node struct + Children []*Node + Line int + Name string + Post string + PostClose string + Pre []string + PreClose []string + Value Token + func NewFlatNode(name string, value any) *Node + func NewNode(name string, value any) *Node + func Parse(kind Token, p string) (*Node, error) + func (n *Node) As[T any]() (T, error) + func (n *Node) Directives() []*Node + func (n *Node) FormFields() *Node + func (n *Node) FormValues() *Node + func (n *Node) Format() string + func (n *Node) Get(path string) *Node + func (n *Node) Kind() Kind + func (n *Node) MarshalJSON() ([]byte, error) + func (n *Node) Replace(fn func(n *Node) (*Node, error)) error + func (n *Node) String() string + func (n *Node) UnmarshalJSON(p []byte) error + type Sanitizer struct + DirectivePackages []string + FormPackages []string + func (s Sanitizer) Run(n *Node) []error + type StringToken struct + Data string + Quote string + func (st StringToken) Tag() string + type Token struct + func MakeToken(v any) Token + func MakeTokenFromRepr(s string) Token + func TFlatForm() Token + func TFlatList() Token + func TFlatStruct() Token + func TForm(name string) Token + func TList() Token + func TStruct() Token + func (t Token) As[T any]() (T, error) + func (t Token) Repr() string