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
type Config struct {
Test []string `properties:"Test"`
}
And the following decoding
var cfg Config
if err := p.Decode(&cfg); err != nil {
log.Fatal(err)
}
fmt.Printf("got test values: %s\n", cfg.Test[1])
```
My program crashes as cfg.Test is of length 1.
The text was updated successfully, but these errors were encountered:
Given a properties file consisting of:
A config struct of
And the following decoding
The text was updated successfully, but these errors were encountered: