Documentation
¶
Overview ¶
Package hjson provides HJSON encoding helpers and adapters used by go-service.
This package integrates HJSON encoding/decoding behind the go-service encoding abstraction. Decode rejects duplicate object keys.
Start with the package-level constructors.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct{}
Encoder implements HJSON encoding and decoding.
func NewEncoder ¶
func NewEncoder() *Encoder
NewEncoder constructs an HJSON encoder.
This encoder is a thin adapter around github.com/hjson/hjson-go that satisfies github.com/alexfalkowski/go-service/v2/encoding.Encoder.
Click to show internal directories.
Click to hide internal directories.