toml

package
v0.0.0-...-7cac148 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal returns the TOML encoding of v.

func StrictUnmarshal

func StrictUnmarshal(data []byte, v interface{}) error

StrictUnmarshal parses the TOML encoded data and stores the result in the value pointed to by v. Unlike Unmarshal, any unknown keys in the data is an error.

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

Unmarshal parses the TOML encoded data and stores the result in the value pointed to by v.

func Validate

func Validate(data []byte) error

Validate returns nil if data is valid TOML. Otherwise, an error describing the parse failure is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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