extract

package
v0.0.0-...-bc5a6c4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Types

func Types(srcDir string, handlers TypeHandlers) error

Types walks the given directory to extract all the types and pass them on to the handlers.

Types

type Location

type Location struct {
	PackageName       string
	PackageImportPath string
	SourceFile        string
}

Location is a generic representation of where a type was found.

type TypeHandlers

type TypeHandlers struct {
	Value     func(Location, types.Value)
	Function  func(Location, types.Function)
	Interface func(Location, types.Interface)
}

TypeHandlers is a collection of functions that accept all type types.

Jump to

Keyboard shortcuts

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