package something import ( "www.thenautilus.net/cgit/go-example/config" ) type Something struct { value int } func New(conf *config.SomethingClientConfig) Something { return Something{ value: conf.Value, } } func (s *Something) FetchValue() (int, error) { return s.value, nil }