Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yukselcodingwithyou committed Nov 30, 2021
1 parent 8029593 commit c7095c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ func getValueFromConfig(m Config, ks []string) (val interface{}, err error) {
} else {
switch _type := m[ks[0]].(type) {
case Config:
fmt.Println(_type)
return getValueFromConfig(m[ks[0]].(Config), ks[1:])
case map[string]interface{}:
fmt.Println(_type)
return getValueFromConfig(m[ks[0]].(map[string]interface{}), ks[1:])
default:
fmt.Println(_type)
}
}
return nil, errKeyNotFound(ks[len(ks)-1])
Expand Down

0 comments on commit c7095c2

Please sign in to comment.