toml

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode[S any](reader io.Reader, result *S, hooks ...mapstructure.DecodeHookFunc) error

Decode decodes yaml encoded data from the reader and stores the result in the value pointed to by result.

func Encode

func Encode[S any](writer io.Writer, data S, opts ...func(*EncodeOption)) error

Encode encodes data to the writer with toml.

Types

type EncodeOption

type EncodeOption struct {
	TablesInline    bool
	IndentSymbol    string
	IndentTables    bool
	ArraysMultiline bool
}

EncodeOption is a type for functional options for the Encode function.

Jump to

Keyboard shortcuts

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