toml

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: MIT Imports: 2 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
	NewDecoder = toml.NewDecoder
	NewEncoder = toml.NewEncoder
	DecodeFile = toml.DecodeFile
	DecodeTOML = toml.Decode
)

Functions

func Decode

func Decode(data string, v any) error

Decode decodes the given JSON string into v

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 Value

type Value = toml.Primitive

Jump to

Keyboard shortcuts

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