dmotylev / goproperties

Simple library for reading .properties (java properties) files for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Goproperties Build Status

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")

	// ... use given credentials

	_, _ = username, password
}

Look at properties_test.go for more usage hints.

License

For the license see LICENSE.

About

Simple library for reading .properties (java properties) files for Go

License:MIT License


Languages

Language:Go 100.0%