toml

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 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

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

Marshal marshals the given config map to TOML bytes.

func (*TOML) Unmarshal

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

Unmarshal parses the given TOML bytes.

Jump to

Keyboard shortcuts

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