Versions in this module Expand all Collapse all v0 v0.0.3 Feb 23, 2023 Changes in this version + func ExistedMethodForInterface(list *ast.FieldList, methodName string) bool + func ExistedMethodForStruct(decls []ast.Decl, method string, receiverType string) bool + func FileInsertContent(fileName string, line int, content string) + func GetIdent(i string) ast.Expr + func WriteFile(fileName string, writers []Writer) + func WriteFileForLine(fileName string, writers []Writer) + type WriteFunc func(fset *token.FileSet, fileNode *ast.File) + func (w WriteFunc) Write(fset *token.FileSet, fileNode *ast.File) + type Writer interface + Write func(fset *token.FileSet, fileNode *ast.File) + func GetFuncWriter(receiverName string, receiverType string, funcName string, paramNames []string, ...) Writer + func GetImportWriter(alia string, importValue string) Writer + func GetInterfaceWrite(interfaceName string, funcName string, paramNames []string, ...) Writer + func GetInterfaceWrite2(fileName string, interfaceName string, method string) Writer