Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Maker ¶
type Maker struct { // StructName is the name of the struct from which to generate an interface. StructName string // If CopyDocs is true, doc comments will be copied to the generated interface. CopyDocs bool Output string PkgNameUsedInSourceStruct string // contains filtered or unexported fields }
Maker generates interfaces from structs.
func (*Maker) MakeInterface ¶
MakeInterface creates the go file with the generated interface. The package will be named pkgName, and the interface will be named ifaceName.
Click to show internal directories.
Click to hide internal directories.