toml

package
Version: v1.6.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

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

Encoder is encoder struct

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

NewEncoder returns a new encoder instance

func (*Encoder) Encode

func (enc *Encoder) Encode(v interface{}) error

Encode encodes interface to toml

type MetaData

type MetaData = toml.MetaData

MetaData is meta data struct

func Decode

func Decode(data string, v interface{}) (MetaData, error)

Decode decodes toml data to interface

func DecodeFile

func DecodeFile(fpath string, v interface{}) (MetaData, error)

DecodeFile decodes toml file

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL