Comments (2)
You need to use version 4 or later of hjson-go in order to unmarshal to structs. Make sure you import hjson-go like this:
import "github.com/hjson/hjson-go/v4"
from hjson-go.
Sorry, my mistake.
from hjson-go.
Related Issues (20)
- CLI gets stuck when no file is used as parameter HOT 2
- Unmarshal panics if passed nil interface
- Marshal panics if comment-like numerical constant is passed
- Includes trailing comma character in unquoted list items HOT 1
- Trailing spaces in Marshal output
- add go mod support HOT 2
- Support comments marshaling HOT 1
- Unmashal to struct HOT 3
- newline HOT 1
- marshal an object with not export self pointer reference will run forever HOT 4
- support marshal net.ParseIP(`127.0.0.1`) to 127.0.0.1 HOT 3
- can not unmarshal obj from marshal result with string "0\r'" HOT 3
- module path must match major version HOT 3
- need an option to preserve source file key order HOT 12
- Preserve comments on source file HOT 3
- Error with UnmashalText type with null value in list HOT 3
- Easy way to unmarshal to struct without assertions? HOT 4
- homebrew?
- Unicode escape in encoder HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hjson-go.