Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 661 Bytes

File metadata and controls

39 lines (29 loc) · 661 Bytes

readini

A simple Go library to read ini files.

Current ver is 0.3.1.

100% coverage tested.

How to use

For example:

import (
    "fmt"

    "github.com/FunctionSir/readini"
)

func main() {
    conf, err := readini.LoadFromFile("some_file.conf")
    fmt.Println(conf[""]["KeyA"], conf["SectionA"]["KeyA"])
    sec := conf["SectionA"]
    fmt.Println(sec["KeyA"], sec.HasKey("KeyA"))
}

Bug report

Report bugs in Issue is recommended.