make correct type
This commit is contained in:
parent
a29d084b24
commit
92134cbe7a
2
main.go
2
main.go
@ -16,7 +16,7 @@ type Config struct {
|
|||||||
|
|
||||||
func NewConfig()(*Config) {
|
func NewConfig()(*Config) {
|
||||||
config := new(Config)
|
config := new(Config)
|
||||||
config.env = make(map[string]string)
|
config.env = make(map[string]map[string]int)
|
||||||
for _,v := range os.Environ() {
|
for _,v := range os.Environ() {
|
||||||
splitted := strings.SplitN(v, "=", 2)
|
splitted := strings.SplitN(v, "=", 2)
|
||||||
if len(splitted) == 2 {
|
if len(splitted) == 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user