Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TOMLParser ¶
type TOMLParser struct{}
TOMLParser parses TOML configuration files into protobuf messages.
func NewTOMLParser ¶
func NewTOMLParser() *TOMLParser
NewTOMLParser creates a TOML parser. Users pass this to config.WithParser() to enable TOML support.
Example:
loader, _ := config.New(
config.WithParser(toml.NewTOMLParser()),
)
func (*TOMLParser) Extensions ¶
func (p *TOMLParser) Extensions() []string
Click to show internal directories.
Click to hide internal directories.