Skip to content

Commit

Permalink
Change yaml to mapstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
minhduc140583 committed Sep 28, 2024
1 parent 472bce9 commit ec514ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func BindEnvs(conf interface{}, parts ...string) error {
for i := 0; i < num; i++ {
v := ifv.Field(i)
t := ift.Field(i)
tv, ok := t.Tag.Lookup("yaml")
tv, ok := t.Tag.Lookup("mapstructure")
if !ok {
continue
}
Expand Down

0 comments on commit ec514ae

Please sign in to comment.