Versions in this module Expand all Collapse all v0 v0.6.0 Nov 27, 2021 Changes in this version + var ErrorTargetInterfaceNotFound = errors.New("the target interface is not found in the source tree") + func UniqSortedPackages(sts []*StructType) []string + type Generator interface + Generate func(tmplName string) (src []byte, err error) + func NewStructTypeGenerator(ctl app_control.Control, sts []*StructType) Generator + type Scanner interface + ExcludeTest func() Scanner + FindStructHasPrefix func(prefix string) ([]*StructType, error) + FindStructImplements func(refType reflect.Type) ([]*StructType, error) + PathFilterPrefix func(prefix string) Scanner + func NewScanner(c app_control.Control, path string) (Scanner, error) + type StructType struct + Name string + Package string + func SortedStructTypes(sts []*StructType) (sorted []*StructType)