Documentation
¶
Overview ¶
Package structtag parses the value of a single struct tag into its name and options. It targets the near-universal `name,opt1,opt2` encoding used by encoding/json, gopkg.in/yaml.v3 and most reflection-based decoders, so it is not tied to any one tag key.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options map[string]struct{}
Options is the set of comma-separated options that follow the name in a struct tag value (for example "omitempty" or "inline").
Click to show internal directories.
Click to hide internal directories.