hjson

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: 1 Imported by: 3

Documentation

Overview

Package hjson implements a koanf.Parser that parses HJSON bytes as conf maps. Very similar to json.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HJSON

type HJSON struct{}

HJSON implements a HJSON parser.

func Parser

func Parser() *HJSON

Parser returns a HJSON parser.

func (*HJSON) Marshal

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

Marshal marshals the given config map to HJSON bytes.

func (*HJSON) Unmarshal

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

Unmarshal parses the given HJSON bytes.

Jump to

Keyboard shortcuts

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