utils

package
v0.0.0-...-e8da2ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypeChecker

type TypeChecker interface {
	CheckNode(pass *analysis.Pass, node ast.Node)
}

TypeChecker is an interface for checking types in an AST. It is used to check the underlying, built-in types of fields within structs, and raw type declarations. It is up to the implementer to provide a function that will be called when a built-in type is found, and to provide the logic for providing analysis about this type.

func NewTypeChecker

func NewTypeChecker(checkFunc func(pass *analysis.Pass, ident *ast.Ident, node ast.Node, prefix string)) TypeChecker

NewTypeChecker returns a new TypeChecker with the provided checkFunc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL