Documentation ¶
Overview ¶
Package model contains the data model necessary for generating stub implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InterfaceType ¶
type InterfaceType struct {
Methods []*Method
}
InterfaceType is an interface type.
var EmptyInterface *InterfaceType = &InterfaceType{nil}
func (*InterfaceType) Declaration ¶
func (it *InterfaceType) Declaration(pm map[string]string, pkgOverride string) string
type NamedType ¶
type NamedType struct { Package string // may be empty Name string Underlying Type Methods []*Method }
NamedType is an exported type in a package.
func (*NamedType) Declaration ¶
type Package ¶
type Package struct { Name string PkgPath string UseExtTypes bool Exports map[string]Export NamedTypes map[string]Type }
Package is a Go package. It may be a subset.
func NewPackage ¶
type PredeclaredType ¶
type PredeclaredType string
PredeclaredType is a predeclared type such as "int".
Click to show internal directories.
Click to hide internal directories.