docs: add package deprecation to go.mod and README
refactor(tests): use Buffer.String() comparsion
Bump github.com/google/go-cmp from 0.5.5 to 0.6.0
A Go package that encodes and decodes INI-files.
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)