github.com/shoenig/javapropio

Allow for Go programs to generate java-style properties files that work with java.util.Properties.


License
BSD-2-Clause
Install
go get github.com/shoenig/javapropio

Documentation

javapropio

Write Java properties files in Go

Go Report Card Build Status GoDoc NetflixOSS Lifecycle GitHub

Project Overview

Module gophers.dev/pkgs/javapropio provides a package for writing the content of Java properties files.

Getting Started

The javapropio package can be installed by running

$ go get gophers.dev/pkgs/javapropio

Example usage

var buf bytes.Buffer
w, _ := NewWriter(&buf)
_ = w.WriteProp("foo", "bar")
_ = w.Close()
s := buf.String() // java properties formatted

Contributing

The gophers.dev/pkgs/javapropio module is always improving with new features and error corrections. For contributing bug fixes and new features please file an issue.

License

The gophers.dev/pkgs/javapropio module is open source under the BSD-3-Clause license.

This is a fork of a deleted package, originally by github.com/rboyer