json

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 1 Imported by: 115

Documentation

Overview

Package json implements a koanf.Parser that parses JSON bytes as conf maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct{}

JSON implements a JSON parser.

func Parser

func Parser() *JSON

Parser returns a JSON Parser.

func (*JSON) Marshal added in v0.9.0

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

Marshal marshals the given config map to JSON bytes.

func (*JSON) Unmarshal added in v0.9.0

func (p *JSON) 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