reference-query 0.54.0

Reference Query — find the code you're looking for.
Documentation
// Fixture: a small, domain-neutral Go file exercising the kinds the plugin
// extracts (struct, interface→trait, method with receiver, free func, const).

package widget

const MaxRetries = 3

const (
    ColorRed = iota
    ColorBlue
)

var defaultSize = 1

type Widget struct {
	Size int
}

type Renderer interface {
	Render() string
}

func (w *Widget) Resize(n int) {
	w.Size = n
}

func BuildWidget() *Widget {
	return &Widget{}
}

func MaxRetriesFor(w *Widget) int {
    const limit = MaxRetries
    return limit
}