make correct type

This commit is contained in:
Roy Olav Purser 2021-03-23 10:16:25 +01:00
parent a29d084b24
commit 92134cbe7a
No known key found for this signature in database
GPG Key ID: 0BA77797F072BC52

View File

@ -16,7 +16,7 @@ type Config struct {
func NewConfig()(*Config) {
config := new(Config)
config.env = make(map[string]string)
config.env = make(map[string]map[string]int)
for _,v := range os.Environ() {
splitted := strings.SplitN(v, "=", 2)
if len(splitted) == 2 {