Documentation
¶
Overview ¶
Package toml provides a Starlark module for decoding and encoding TOML.
Decoding is hardened: input size, nesting depth, and total node count are bounded (capwalk), and panics are recovered into errors. TOML's native date/time values are surfaced as strings (RFC 3339 for full timestamps), never as surprise opaque values.
Index ¶
Constants ¶
View Source
const ModuleName = "toml"
ModuleName is the name used in Starlark's load() for this module.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module wraps a ConfigurableModule with TOML functions.
func NewModule ¶
func NewModule() *Module
NewModule creates a new Module with default configuration.
func (*Module) LoadModule ¶
func (m *Module) LoadModule() starlet.ModuleLoader
LoadModule returns the Starlark module loader.
Click to show internal directories.
Click to hide internal directories.