Skip to content

Commit

Permalink
version 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lonelymous committed Mar 24, 2023
1 parent 3e4d43e commit ee5b6e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goco.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/go-ini/ini"
)

func InitializeConfig(config *interface{}, filePaths ...string) error {
func InitializeConfig(config interface{}, filePaths ...string) error {
filePath := "config.ini"
if len(filePaths) != 0 {
filePath = filePaths[0]
Expand All @@ -17,5 +17,5 @@ func InitializeConfig(config *interface{}, filePaths ...string) error {
return err
}

return ini.MapTo(&config, configFile)
}
return ini.MapTo(config, configFile)
}

0 comments on commit ee5b6e0

Please sign in to comment.