commit | 97d29e9c18da443e3091e621b2733df772d535dc | [log] [tgz] |
---|---|---|
author | Frank Schroeder <frschroeder@ebay.com> | Sat Jan 04 11:24:18 2014 +0100 |
committer | Frank Schroeder <frschroeder@ebay.com> | Sat Jan 04 11:24:18 2014 +0100 |
tree | 0279e42e8609b41d5c65b500b5c2c5c9b26cdfa4 | |
parent | d5ae3019b05c884395a962acecbabeb682bfb708 [diff] |
Updated README
goproperties is a Go library for reading and writing Java property files.
It supports reading properties from multiple files and Spring style property expansion of expressions of ‘${key}’ to their corresponding value.
The current version supports reading both ISO-8859-1 and UTF-8 encoded data.
$ go get github.com/magiconair/goproperties
p, err := goproperties.MustLoadFile(filename) value, ok := p.Get("key") if ok { fmt.Println(value) }
or
p, err := goproperties.DecodeString("key = value") if err != nil { // handle error } value, ok := p.Get("key") if ok { fmt.Println(value) }
v0.9, 17 Dec 2013 - Initial release
2 clause BSD license. See LICENSE file for details.