This was unexpected behavior for me. I imagine it has to do with JSON/yaml parsing support.
Perhaps documentation is all that's needed.
package main
import (
"fmt"
"github.com/segmentio/conf"
)
type config struct {
Name string `conf:"name" help:"set me please"`
}
func main() {
c := config{}
conf.Load(&c)
fmt.Println(c)
}
abraithwaite at alan-mbpr in ~GOPATH/src/github.com/segmentio
10:57:05 $ go run play.go -name null
{}