Popularity
1.6
Growing
Activity
7.3
-
11
2
6

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

go-ini alternatives and similar packages

Based on the "Configuration" category.
Alternatively, view go-ini alternatives based on common mentions on social networks and blogs.

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

Add another 'Configuration' Package

README

PkgGoDev builds.sr.ht status Go Report Card

go-ini

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)