Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sasbury/mini
A golang package for parsing ini-style configuration files
https://github.com/sasbury/mini
Last synced: 10 days ago
JSON representation
A golang package for parsing ini-style configuration files
- Host: GitHub
- URL: https://github.com/sasbury/mini
- Owner: sasbury
- License: mit
- Fork: true (glitchdotcom/mini)
- Created: 2015-04-29T23:52:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-26T23:28:05.000Z (almost 6 years ago)
- Last Synced: 2024-07-31T20:45:05.941Z (3 months ago)
- Language: Go
- Size: 17.6 KB
- Stars: 35
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
- fucking-awesome-go - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
- awesome-go - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
- awesome-go - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
- awesome-go - mini - A golang package for parsing ini-style configuration files - ★ 19 (Configuration)
- awesome-go-extra - mini - style configuration files|31|7|1|2015-04-29T23:52:36Z|2018-12-26T23:28:05Z| (Configuration / Advanced Console UIs)
- awesome-go-with-stars - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
- awesome-go-plus - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
- awesome-go-plus - mini - Golang package for parsing ini-style configuration files. (Configuration / Standard CLI)
README
Mini
================[![Build Status](https://travis-ci.org/sasbury/mini.svg?branch=master)](https://travis-ci.org/sasbury/mini) [![GoDoc](https://godoc.org/github.com/sasbury/mini?status.svg)](https://godoc.org/github.com/sasbury/mini)
Mini is a simple [ini configuration file](http://en.wikipedia.org/wiki/INI_file) parser.
The ini syntax supported includes:
* The standard name=value
* Comments on new lines starting with # or ;
* Blank lines
* Sections labelled with [sectionname]
* Split sections, using the same section in more than one place
* Encoded strings, strings containing \n, \t, etc...
* Array values using repeated keys named in the form key[]=value
* Global key/value pairs that appear before the first sectionRepeated keys, that aren't array keys, replace their previous value.
To use simply:
% go get github.com/sasbury/mini