Goproperties
Package implements read operations of .properties source.
Documentation
The Goproperties API reference is available on GoDoc.
Installation
Install Goproperties using the go get
command:
go get -u github.com/dmotylev/goproperties
Usage
Example:
package main
import "github.com/dmotylev/goproperties"
func main() {
p, _ := properties.Load("credentials")
username := p.String("username","demo")
password := p.String("password","demo")
_, _ = username, password
}
Look at properties_test.go for more usage hints.
Dependencies
Main functionality
The main part depends on the Go distribution only.
Test functionality
The test part depends on gocheck package.
Use following go get
command to install test dependencies:
go get -u launchpad.net/gocheck
License
For the license see LICENSE.