Releases: golift/cnfg
Updates
This release fixes a minor bug and adds methods to unmarshal the Duration type correctly.
Switch TOML lib
The pelletier TOML library doesn't seem to support UnmarshalText methods, so switching back to BurntSushi.
File Solo
Moved the config file procedure into its own package.
Changes
Disassociated the unmarshaling (parser) code from the environment. Now, the environment is collected when the parser starts, and passed in as a map; the env is only read once per invocation. Also added an UnmarshalMap function so you can capture the env, manipulate it out of band (or not), and feed it into the unmarshaler as needed with no further - or any - dependence on the environment.
Also made types byte and []byte work better.
This is good.
Bug Fixes and code condensation
Now that the test suite is done, it was a lot easier to go through and trim the code. Removed 100 lines or so, and fixed some bugs with pointers. Seems solid now. Working in a real world app.
Initial Droplet
Don't let the crappy repo readme fool you: This code is legit.