1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Fixture: a small, domain-neutral Go file exercising the kinds the plugin
// extracts (struct, interface→trait, named type, method with receiver, free
// func, const).
package widget
const MaxRetries = 3
const (
ColorRed = iota
ColorBlue
)
var defaultSize = 1
type Widget struct
type RenderFunc func(w *Widget) string
type Renderer interface
func (n int)
func BuildWidget() *Widget
func MaxRetriesFor(w *Widget) int
func RenderFuncFor(w *Widget) RenderFunc