Skip to content

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

License

Notifications You must be signed in to change notification settings

mmccartney/goproperties

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%