Home

Awesome

goconfig

Go Reference

中文文档

IMPORTANT

About

Package goconfig is a easy-use, comments-support configuration file parser for the Go Programming Language, which provides a structure similar to what you would find on Microsoft Windows INI files.

The configuration file consists of sections, led by a [section] header and followed by name:value or name=value entries. Note that leading whitespace is removed from values. The optional values can contain format strings which refer to other values in the same section, or values in a special DEFAULT section. Comments are indicated by ";" or "#"; comments may begin anywhere on a single line.

Features

Installation

go get github.com/unknwon/goconfig

Example

Please see conf.ini as an example.

Usage

Note that you cannot mix in-memory configuration with on-disk configuration.

More Information

Credits

License

This project is under Apache v2 License. See the LICENSE file for the full license text.