toml

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 5 Imported by: 0

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

func (*TOMLParser) Unmarshal

func (p *TOMLParser) Unmarshal(data []byte, path string, msg proto.Message, strict bool) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL