toml

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package toml provides the toml functions

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal   = marshal
	Unmarshal = toml.Unmarshal

	NewEncoder = toml.NewEncoder
	DecodeFile = toml.DecodeFile
	DecodeTOML = toml.Decode
)
View Source
var (
	Codec = codec{}
)

Functions

func MarshalToString

func MarshalToString(v any) string

MarshalToString returns json string, and ignores error

func MustToString

func MustToString(v any) string

MustToString returns json string, or panic

Types

type Decoder added in v0.0.17

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(ior io.Reader) *Decoder

func (Decoder) Decode added in v0.0.17

func (t Decoder) Decode(obj any) error

type DecoderTOML added in v0.0.17

type DecoderTOML = toml.Decoder

type Value

type Value = toml.Primitive

Jump to

Keyboard shortcuts

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