blob: 3412886bbeda8dfe1afa22fbfa98826bf93d1755 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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 }
|