Documentation
¶
Index ¶
- func Append[E any](d *[]E, v ...E)
- func ArrAntiSuffix[V any](v []V, count int) []V
- func Last[V any](v []V) V
- func MergeMap[K comparable, V any](dest map[K]V, source map[K]V)
- func NamedReturns(spec *ast.FuncType) []*ast.Ident
- func P[V any](v V) *V
- func PopMap[K comparable, V any](m map[K]V, key K) V
- func Remove[E any](d *[]E, start int, count int)
- func ScanTypeTags(p *analysis.Pass)
- func UpdateMap[K comparable, V any](m map[K]V, key K, updater func(v V, exists bool) V)
- func Walk[S any](n ast.Node, preVisitor func(n ast.Node) (S, bool), ...)
- func WalkWithCrumbs(n ast.Node, visitor func(n ast.Node, crumbs []ast.Node) bool)
- type ChecksFact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrAntiSuffix ¶
ArrAntiSuffix returns all but count last elements
func MergeMap ¶
func MergeMap[K comparable, V any]( dest map[K]V, source map[K]V, )
func PopMap ¶
func PopMap[K comparable, V any](m map[K]V, key K) V
func ScanTypeTags ¶
func UpdateMap ¶
func UpdateMap[K comparable, V any]( m map[K]V, key K, updater func(v V, exists bool) V, )
Types ¶
type ChecksFact ¶
func GetTypeTags ¶
func GetTypeTags(p *analysis.Pass, o types.Object) ChecksFact
func (*ChecksFact) AFact ¶
func (*ChecksFact) AFact()
Click to show internal directories.
Click to hide internal directories.