* PR #65: Speedup Merge
Thanks to @AdityaVallabh for the patch.
* PR #66: use github actions
* PR #57:Fix "unreachable code" lint error
Thanks to @ellie for the patch.
* PR #63: Make TestMustGetParsedDuration backwards compatible
This patch ensures that the TestMustGetParsedDuration still works with go1.3 to make the
author happy until it affects real users.
Thanks to @maage for the patch.
* PR #55: Fix: Encoding Bug in Comments
When reading comments \ are loaded correctly, but when writing they are then replaced by \. This leads to wrong comments when writing and reading multiple times.
Thanks to @doxsch for the patch.
* PR #50: enhance error message for circular references
Thanks to @sriv for the patch.
* PR #49: Include the key in error message causing the circular reference
The change is include the key in the error message which is causing the circular reference when parsing/loading the properties files.
Thanks to @haroon-sheikh for the patch.
* PR #36: Escape backslash on write
This patch ensures that backslashes are escaped on write. Existing applications which rely on the old behavior may need to be updated.
Thanks to @apesternikov for the patch.
* PR #42: Made Content-Type check whitespace agnostic in LoadURL()
Thanks to @aliras1 for the patch.
* PR #41: Make key/value separator configurable on Write()
Thanks to @mkjor for the patch.
* PR #40: Add method to return a sorted list of keys
Thanks to @mkjor for the patch.
* PR #35: 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.
* Issue #23: Ignore blank lines with whitespaces
* PR #24: Update keys when DisableExpansion is enabled
Thanks to @mgurov for the fix.
* Issue #17: Add SetValue() method to set values generically * Issue #22: Add LoadMap() function to load properties from a string map
* Issue #15: Drop gocheck dependency * PR #21: Add Map() and FilterFunc()
* Issue #14: Decouple TestLoadExpandedFile from $USER
* PR #12: Load from files and URLs
* PR #16: Keep gofmt happy
* PR #18: Fix Delete() function
* Issue #10: Add LoadURL,LoadURLs,MustLoadURL,MustLoadURLs method to load properties from a URL. * Issue #11: Add LoadString,MustLoadString method to load properties from an UTF8 string. * PR #8: Add MustFlag method to provide overrides via command line flags. (@pascaldekloe)
* Add Decode method to populate struct from properties via tags.
* Vendored in gopkg.in/check.v1
* PR #6: Add Delete method to remove keys including comments. (@gerbenjacobs)
* 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.
* Issue #4: Maintain key order in Filter(), FilterPrefix() and FilterRegexp()
* Issue #3: Don't print comments in WriteComment() if they are all empty * Add clickable links to README
* Added GetParsedDuration() and MustGetParsedDuration() for values specified compatible with time.ParseDuration().
* 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 Keys() to get the keys * Added Filter(), FilterRegexp() and FilterPrefix() to get a subset of the properties
filenames and value expressions
start of the string