toml

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

Decode decodes the TOML-encoded data and stores the result in the value pointed to by v.

Static Method

func Encode

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

Encode returns the TOML encoding of the data.

Static Method

Types

type TOML

type TOML struct {
}

func New

func New() *TOML

func (*TOML) Decode

func (j *TOML) Decode(raw []byte, v interface{}) error

Decode decodes the TOML-encoded data and stores the result in the value pointed to by v.

func (*TOML) Encode

func (j *TOML) Encode(v interface{}) ([]byte, error)

Encode returns the TOML encoding of the data.

Jump to

Keyboard shortcuts

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