toml

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 2 Imported by: 130

Documentation

Overview

Package toml implements a koanf.Parser that parses TOML bytes as conf maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TOML

type TOML struct{}

TOML implements a TOML parser.

func Parser

func Parser() *TOML

Parser returns a TOML Parser.

func (*TOML) Marshal added in v0.9.0

func (p *TOML) Marshal(o map[string]interface{}) ([]byte, error)

Marshal marshals the given config map to TOML bytes.

func (*TOML) Unmarshal added in v0.9.0

func (p *TOML) Unmarshal(b []byte) (map[string]interface{}, error)

Unmarshal parses the given TOML bytes.

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

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