Versions in this module Expand all Collapse all v1 v1.2.0 Jun 16, 2020 Changes in this version + func FormatCode(code string) ([]byte, error) + func FormatFieldList(src []byte, fl *ast.FieldList, pkgName string) []string + func GetReceiverType(fd *ast.FuncDecl) (ast.Expr, error) + func GetReceiverTypeName(src []byte, fl interface{}) (string, *ast.FuncDecl) + func Make(files []string, structType, comment, pkgName, ifaceName, ifaceComment string, ...) ([]byte, error) + func MakeInterface(comment, pkgName, ifaceName, ifaceComment string, methods []string, ...) ([]byte, error) + type Method struct + Code string + Docs []string + func ParseStruct(src []byte, structName string, copyDocs bool, copyTypeDocs bool, ...) (methods []Method, imports []string, typeDoc string) + func (m *Method) Lines() []string