Skip to content

Commit

Permalink
fixed pointer element
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipu committed Mar 7, 2022
1 parent 320b389 commit 961c71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (e *Enviper) readEnvs(rawVal interface{}) {
func (e *Enviper) bindEnvs(in interface{}, prev ...string) {
ifv := reflect.ValueOf(in)
if ifv.Kind() == reflect.Ptr {
ifv = ifv.Elem().Elem()
ifv = ifv.Elem().Elem().Elem()
}
//ifv = ifv.Elem()
for i := 0; i < ifv.NumField(); i++ {
Expand Down

0 comments on commit 961c71f

Please sign in to comment.