Documentation ¶
Overview ¶
Package model contains the data model necessary for generating mock implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorInterface = Interface{ Name: "error", Methods: []*Method{ { Name: "Error", Out: []*Parameter{ { Name: "", Type: PredeclaredType("string"), }, }, }, }, }
ErrorInterface represent built-in error interface.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
Interface is a Go interface.
func InterfaceFromInterfaceType ¶
InterfaceFromInterfaceType returns a pointer to an interface for the given reflection interface type.
type NamedType ¶
type NamedType struct { Package string // may be empty Type string TypeParams *TypeParametersType }
NamedType is an exported type in a package.
type Package ¶
Package is a Go package. It may be a subset.
type PredeclaredType ¶
type PredeclaredType string
PredeclaredType is a predeclared type such as "int".
type Type ¶
type Type interface { String(pm map[string]string, pkgOverride string) string // contains filtered or unexported methods }
Type is a Go type.
type TypeParametersType ¶
type TypeParametersType struct {
TypeParameters []Type
}
TypeParametersType contains type parameters for a NamedType.
Click to show internal directories.
Click to hide internal directories.