8000
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
var Config = struct { Contacts []struct { Name string Email string `required:"true"` } }{} configor.Load(&Config, "config.yml") fmt.Println(Config) // log: {[]}
contacts: - name: i test email: test@test.com
The text was updated successfully, but these errors were encountered:
Can be fixed by decapitalizing Name, Contacts, and Email in your struct
Sorry, something went wrong.
Works as designed - use proper indentation in your yaml file.
I think issue was I forgot to decapitalize fields (yaml:"name") in my struct, as @gidoBOSSftw5731 mentioned.
yaml:"name"
Reopening so maintainer consider mentioning this in README examples.
No branches or pull requests
The text was updated successfully, but these errors were encountered: