-
-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
Reproducible Example
type Config struct {
Foo struct {
Servers []struct {
Name string
Port int
Host string `default:"0.0.0.0"`
}
Testing map[string]struct {
Name string `default:"default"`
}
}
}
foo:
servers:
- name: dev
port: 4000
- name: alpha
port: 5000
testing:
data1:
Description
The field in slice and map won't get default value when empty.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels