blob: 2516b2dc528cd28ec8e7e90214ea942f8cfecd06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package something import ( "fmt" "www.thenautilus.net/cgit/go-example/config" ) type Something struct { value int } func New(conf *config.SomethingConfig) Something { return Something{ value: conf.Value, } } func (s *Something) DoSomething() error { fmt.Printf("the value is %d", s.value) return nil }
|