We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: id: 1 name: '' db: driverName: mysql url: '' demoDb: '' dataDb: ''
var Config = struct { Server struct { Id int `required:"true"` Name string `required:"true"` } DB struct { DriverName string `required:"true"` Url string `required:"true"` DemoDb string `required:"true"` DataDb string `required:"true"` } }
The text was updated successfully, but these errors were encountered:
今天遇到了这个问题,发现使用 yaml:""的tag就能正常解析。
yaml:""
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: