Changelog
- PR #26: Close body always after request
This patch ensures that in LoadURL
the response body is always closed.
Thanks to @liubog2008 for the patch.
- PR #26: Disable expansion during loading
This adds the option to disable property expansion during loading.
Thanks to @kmala for the patch.
- PR #29: Reworked expansion logic to handle more complex cases.
See PR for an example.
Thanks to @yobert for the fix.
- PR #28: Support duplicate expansions in the same value
Values which expand the same key multiple times (e.g. key=${a} ${a}
) will no longer fail
with a circular reference error
.
Thanks to @yobert for the fix.
Thanks to @mgurov for the fix.
- Issue #14: Decouple TestLoadExpandedFile from
$USER
- PR #12: Load from files and URLs
- PR #16: Keep gofmt happy
- PR #18: Fix Delete() function
- Add Decode method to populate struct from properties via tags.
- Vendored in gopkg.in/check.v1
- Issue #5: Allow disabling of property expansion DisableExpansion. When property expansion is disabled Properties become a simple key/value store and don’t check for circular references.
- Added support for single and multi-line comments (reading, writing and updating)
- The order of keys is now preserved
- Calling Set() with an empty key now silently ignores the call and does not create a new entry
- Added a MustSet() method
- Migrated test library from launchpad.net/gocheck to gopkg.in/check.v1
- Issue #2: Fixed goroutine leak in parser which created two lexers but cleaned up only one
- Issue #1: Fixed bug in Keys() method which returned an empty string
- Added support for time.Duration
- Made MustXXX() failure behaior configurable (log.Fatal, panic
- Changed default of MustXXX() failure from panic to log.Fatal
- Added MustGet… functions
- Added support for int and uint with range checks on 32 bit platforms
- Renamed from goproperties to properties
- Added support for expansion of environment vars in
filenames and value expressions
- Fixed bug where value expressions were not at the
start of the string