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

types

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceSpecification

type InterfaceSpecification struct {
	InterfaceName   string
	InterfaceParams []InterfaceSpecificationParam
}

InterfaceSpecification represents abstraction over interface type. It contains all the metadata required to render a mock for given interface. One could deduce whether interface is generic by looking for type params

func FindAllInterfaces

func FindAllInterfaces(p *pkg.Package, pattern string) []InterfaceSpecification

type InterfaceSpecificationParam

type InterfaceSpecificationParam struct {
	ParamNames []string
	ParamType  string
}

InterfaceSpecificationParam represents a group of type param variables and their type I.e. [T,K any] would result in names "T","K" and type "any"

Jump to

Keyboard shortcuts

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