javapropio

package module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2019 License: BSD-2-Clause Imports: 4 Imported by: 0

README

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

Documentation

Overview

Copyright (c) 2013 - Richard Boyer. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer) (*Writer, error)

func (*Writer) Close

func (pw *Writer) Close() error

func (*Writer) WriteProp

func (pw *Writer) WriteProp(k, v string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL