model
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package model contains the data model necessary for generating mock implementations.
Index¶
Constants¶
This section is empty.
Variables¶
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¶
typeInterface¶
Interface is a Go interface.
funcInterfaceFromGoTypesType¶added inv0.6.0
InterfaceFromGoTypesType returns a pointer to an interface for thegiven interface type loaded from archive.
funcInterfaceFromInterfaceType¶
InterfaceFromInterfaceType returns a pointer to an interface for thegiven reflection interface type.
typeNamedType¶
type NamedType struct {Packagestring// may be emptyTypestringTypeParams *TypeParametersType}NamedType is an exported type in a package.
typePackage¶
Package is a Go package. It may be a subset.
typeType¶
type Type interface {String(pm map[string]string, pkgOverridestring)string// contains filtered or unexported methods}Type is a Go type.
typeTypeParametersType¶
type TypeParametersType struct {TypeParameters []Type}TypeParametersType contains type parameters for a NamedType.