koanfer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonKoanfer

type JsonKoanfer struct {
	// contains filtered or unexported fields
}

func NewKoanfer

func NewKoanfer(path string) (r *JsonKoanfer, err error)

func (*JsonKoanfer) Load

func (that *JsonKoanfer) Load(obj interface{}) (err error)

func (*JsonKoanfer) Save

func (that *JsonKoanfer) Save(obj interface{}) (err error)

type KoanfJSON

type KoanfJSON struct{}

func NewJsonParser

func NewJsonParser() *KoanfJSON

func (*KoanfJSON) Marshal

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

Marshal marshals the given config map to JSON bytes.

func (*KoanfJSON) Unmarshal

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

Unmarshal parses the given JSON bytes.

Jump to

Keyboard shortcuts

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