package
Version:
v0.0.0-...-0e50cdf
Opens a new window with list of versions in this module.
Published: Mar 21, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
README
¶
hjson
A HJSON (http://hjson.org) parser and unmarshaller written in Go
A scant 200 lines implements a HJSON parser, with full unmarshalling
support, in Go.
How? It takes an HJSON input and converts it to JSON, and lets the
native Golang parser do the hard stuff.
Differences and/or bugs:
- Unquoted strings have trailing whitespace removed.
- Strings can be quoted using single quote, e.g.
'foo'
.
- Multi-line strings can also be started with double quote, e.g.
"""
- Likely to be some encoding issues, please file bugs.
- Likely edge cases with multi-line strings, please file bugs
Documentation
¶
New returns an io.Reader that converts a HJSON input to JSON
ToJSON converts a hjson format to JSON
func Unmarshal(data []byte, v interface{}) error
Unmarshal is the same as JSON.Unmarshal but for HJSON files
Source Files
¶
Click to show internal directories.
Click to hide internal directories.