You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
					
						
							8.1 KiB
						
					
					
				
			
		
		
	
	
							8.1 KiB
						
					
					
				Changelog
1.8.1 - 10 May 2019
- 
PR #26: Close body always after request
This patch ensures that in
LoadURLthe response body is always closed.Thanks to @liubog2008 for the patch.
 
1.8 - 15 May 2018
- 
PR #26: Disable expansion during loading
This adds the option to disable property expansion during loading.
Thanks to @kmala for the patch.
 
1.7.6 - 14 Feb 2018
- 
PR #29: Reworked expansion logic to handle more complex cases.
See PR for an example.
Thanks to @yobert for the fix.
 
1.7.5 - 13 Feb 2018
- 
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 acircular reference error.Thanks to @yobert for the fix.
 
1.7.4 - 31 Oct 2017
- 
Issue #23: Ignore blank lines with whitespaces
 - 
PR #24: Update keys when DisableExpansion is enabled
Thanks to @mgurov for the fix.
 
1.7.3 - 10 Jul 2017
- Issue #17: Add SetValue() method to set values generically
 - Issue #22: Add LoadMap() function to load properties from a string map
 
1.7.2 - 20 Mar 2017
- Issue #15: Drop gocheck dependency
 - PR #21: Add Map() and FilterFunc()
 
1.7.1 - 13 Jan 2017
- Issue #14: Decouple TestLoadExpandedFile from 
$USER - PR #12: Load from files and URLs
 - PR #16: Keep gofmt happy
 - PR #18: Fix Delete() function
 
1.7.0 - 20 Mar 2016
- 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)
 
1.6.0 - 11 Dec 2015
- Add Decode method to populate struct from properties via tags.
 
1.5.6 - 18 Oct 2015
- Vendored in gopkg.in/check.v1
 
1.5.5 - 31 Jul 2015
- PR #6: Add Delete method to remove keys including comments. (@gerbenjacobs)
 
1.5.4 - 23 Jun 2015
- 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.
 
1.5.3 - 02 Jun 2015
- Issue #4: Maintain key order in Filter(), FilterPrefix() and FilterRegexp()
 
1.5.2 - 10 Apr 2015
- Issue #3: Don't print comments in WriteComment() if they are all empty
 - Add clickable links to README
 
1.5.1 - 08 Dec 2014
- Added GetParsedDuration() and MustGetParsedDuration() for values specified compatible with time.ParseDuration().
 
1.5.0 - 18 Nov 2014
- 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
 
1.4.2 - 15 Nov 2014
- Issue #2: Fixed goroutine leak in parser which created two lexers but cleaned up only one
 
1.4.1 - 13 Nov 2014
- Issue #1: Fixed bug in Keys() method which returned an empty string
 
1.4.0 - 23 Sep 2014
- Added Keys() to get the keys
 - Added Filter(), FilterRegexp() and FilterPrefix() to get a subset of the properties
 
1.3.0 - 18 Mar 2014
- Added support for time.Duration
 - Made MustXXX() failure beha[ior configurable (log.Fatal, panic](https://github.com/magiconair/properties/tree/vior configurable (log.Fatal, panic) - custom)
 - Changed default of MustXXX() failure from panic to log.Fatal
 
1.2.0 - 05 Mar 2014
- Added MustGet... functions
 - Added support for int and uint with range checks on 32 bit platforms
 
1.1.0 - 20 Jan 2014
- 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
 
1.0.0 - 7 Jan 2014
- Initial release