Popularity
0.5
Growing
Activity
6.1
-
2
1
1

Programming language: Go
Tags: Configuration    
Latest version: v0.1.4

go-ini alternatives and similar packages

Based on the "Configuration" category

Do you think we are missing an alternative of go-ini or a related project?

Add another 'Configuration' Package

README

go-ini

GoDoc Build Status Go Report Card Coverage Status

A Go package that encodes and decodes INI-files.

Usage

data := `[settings]
username=root
password=swordfish
shell[unix]=/bin/sh
shell[win32]=PowerShell.exe
`

var config struct {
    Settings struct {
        Username string            `ini:"username"`
        Password string            `ini:"password"`
        Shell    map[string]string `ini:"shell"`
    } `ini:"settings"`
}

if err := ini.Unmarshal(data, &config); err != nil {
    fmt.Println(err)
}
fmt.Println(config)