-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HJSON seems to not be implemented #131
Comments
Hi, unfortunately only json and yaml are provided by default. But the core package is made to be independent of any format, as long it is structured. One can put in any data-structure and get a config. See for example the implementation for JSON parsing:
HJSON parsing is available in the hjson-go package. It even uses similar interfaces to the stdlib json package. Just copy the go-ucfg/json package, and replace all occurcences of |
Hi @urso I'm sorry but I don't know to proceed. I mean... I should use
Am i right? |
Yes, this looks about right. I'd make e.g.
go-ucfg has a many options. In the Beats repo go-ucfg is wrapped, so to always apply a common set of options. See: https://github.com/elastic/beats/blob/master/libbeat/common/config.go#L58 |
Hi,
First of all, thanks for this fantastic package. I wanted to use it with a HJSON configuration file. Reading your documentation:
I've understood that HJSON was implemented, but I've not seen anything on the code.
I've tested it and It's failing... so I'm a bit lost 😓
Is HSJON supported?
Thanks
The text was updated successfully, but these errors were encountered: