You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the field "password" is configured as a string in config.go, when the field "password" is set to a pure number in config.yml, an error will be reported and exit
Yes, go-zero's configuration file and configuration-defined fields are similar to strong type matching. The same field is not supported for matching multiple types for the time being.
Describe the bug
If the field "password" is configured as a string in config.go, when the field "password" is set to a pure number in config.yml, an error will be reported and exit
To Reproduce
The config.yml is
config.yml
password: 123456
The config.go is
config.go
The main.go is
main.go
The error is
Expected behavior
The field "password" can be parsed correctly
Screenshots
Environments (please complete the following information):
More description
config.yml
password: "123456"
The field "password" can be parsed correctly......
The text was updated successfully, but these errors were encountered: