Skip to content

Releases: golift/cnfg

Updates

27 Sep 20:53

Choose a tag to compare

This release fixes a minor bug and adds methods to unmarshal the Duration type correctly.

Switch TOML lib

27 Dec 04:07

Choose a tag to compare

The pelletier TOML library doesn't seem to support UnmarshalText methods, so switching back to BurntSushi.

File Solo

24 Dec 02:28

Choose a tag to compare

Moved the config file procedure into its own package.

Changes

23 Dec 03:02

Choose a tag to compare

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

20 Dec 10:14

Choose a tag to compare

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

19 Dec 08:29

Choose a tag to compare

Don't let the crappy repo readme fool you: This code is legit.