Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

calmh/deprecated_ini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ini

Yet another .INI file parser / writer. Created because the existing ones were either not general enough (allowing easy access to all parts of the original file) or made annoying assumptions about the format. And probably equal parts NIH. You might want to just write your own instead of using this one, you know that's where you'll end up in the end anyhow.

Documentation

http://godoc.org/github.com/calmh/ini

Example

fd, _ := os.Open("foo.ini")
cfg := ini.Parse(fd)
fd.Close()

val := cfg.Get("general", "foo")
cfg.Set("general", "bar", "baz")

fd, _ = os.Create("bar.ini")
err := cfg.Write(fd)
if err != nil {
	// ...
}
err = fd.Close()

License

MIT

About

Yet another .INI file parser / writer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages