toml

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingTOML

type EncodingTOML struct {
}

EncodingTOML is the toml encoding type

func NewEncodingTOML

func NewEncodingTOML() *EncodingTOML

NewEncodingTOML creates a new EncodingTOML instance

func (*EncodingTOML) Marshal

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

Marshal converts the given value to a toml byte slice

func (*EncodingTOML) Unmarshal

func (e *EncodingTOML) Unmarshal(b []byte, v interface{}) error

Unmarshal converts the given toml byte slice to the given value

func (*EncodingTOML) UnmarshalToMap

func (e *EncodingTOML) UnmarshalToMap(b []byte) (map[string]interface{}, error)

UnmarshalToMap converts the json string to a map

Jump to

Keyboard shortcuts

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