Open ahshah opened 3 years ago
Given a properties file consisting of:
Test = foo,bar,baz
A config struct of
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.
use semi-colon
Given a properties file consisting of:
A config struct of
And the following decoding
My program crashes as cfg.Test is of length 1.