Skip to content
/ mini Public
forked from glitchdotcom/mini

A golang package for parsing ini-style configuration files

License

Notifications You must be signed in to change notification settings

sasbury/mini

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini

Build Status GoDoc

Mini is a simple ini configuration 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 section

Repeated keys, that aren't array keys, replace their previous value.

To use simply:

% go get github.com/sasbury/mini

About

A golang package for parsing ini-style configuration files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%