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
YAML:
WriteRoles: - Writer ReadRoles: - Writer - Reader ListRoles: - Writer - Reader
Struct:
type TestConfig struct { ReadRoles []Role `yaml:"ReadRoles"` WriteRoles []Role `yaml:"WriteRoles"` ListRoles []Role `yaml:"ListRoles"` } type Role string
Error:
suite.go:63: test panicked: string Writer goroutine 26 [running]: runtime/debug.Stack() /usr/local/opt/go/libexec/src/runtime/debug/stack.go:24 +0x7a github.com/stretchr/testify/suite.failOnPanic(0xc000545040) /Users/sivanov/go/pkg/mod/github.com/stretchr/testify@v1.7.1/suite/suite.go:63 +0x54 panic({0x255a9c0, 0xc000088130}) /usr/local/opt/go/libexec/src/runtime/panic.go:844 +0x25a github.com/cristalhq/aconfig.mii({0x255a9c0, 0xc000191a50}) /Users/sivanov/go/pkg/mod/github.com/cristalhq/aconfig@v0.16.8/reflection.go:389 +0x36e
seems that array is just unexpected here:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
YAML:
Struct:
Error:
seems that array is just unexpected here:
The text was updated successfully, but these errors were encountered: