Help us shape the future of Go! Take the 2026 Go Developer Survey

initialize

package
v0.510.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name:             "initialize",
	Doc:              "loads data to be used by other analyzers in the schema extractor pass",
	Run:              Run,
	ResultType:       reflect.TypeFor[Result](),
	RunDespiteErrors: true,
}

Analyzer prepares data prior to the schema extractor runs, e.g. loads FTL types for reference by other analyzers.

Functions

func Run

func Run(pass *analysis.Pass) (interface{}, error)

Types

type Result

type Result struct {
	// contains filtered or unexported fields
}

func (Result) IsContextType

func (r Result) IsContextType(typ types.Type) bool

IsContextType will return true if the provided type is assertable to the `context.Context` type.

func (Result) IsStdlibErrorType

func (r Result) IsStdlibErrorType(typ types.Type) bool

IsStdlibErrorType will return true if the provided type is assertable to the stdlib `error` type.

Jump to

Keyboard shortcuts

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