modulepackage
2.0.0+incompatible
Repository: https://github.com/robotjoosen/go-config.git
Documentation: pkg.go.dev
# README
GO Config
Easily apply environment variables to a struct
Installation
go get github.com/robotjoosen/go-config
Usage
type configuration struct {
Name string `mapstructure:"NAME"`
}
func example() {
var cnf configuration
if _, err := config.Load(&cnf, map[string]any{
"NAME": "unknown",
}); err != nil {
return
}
fmt.Println(cnf.Name)
}
# Packages
No description provided by the author
# Functions
No description provided by the author