Versions in this module Expand all Collapse all v0 v0.0.1 Feb 6, 2023 Changes in this version + func ArrayTypeEqual(a, b *ast.ArrayType) error + func AssignStmtEqual(a, b *ast.AssignStmt) error + func BasicLitEqual(a, b *ast.BasicLit) error + func BinaryExprEqual(a, b *ast.BinaryExpr) error + func BlockStmtEqual(a, b *ast.BlockStmt) error + func CallExprEqual(a, b *ast.CallExpr) error + func CompositeLitEqual(a, b *ast.CompositeLit) error + func DeclStmtEqual(a, b *ast.DeclStmt) error + func ExprSliceEqual(a, b []ast.Expr) error + func FieldListEqual(a, b *ast.FieldList) error + func FieldListToMap(fl *ast.FieldList) (map[string]Field, error) + func FuncDeclEqual(a, b *ast.FuncDecl) error + func FuncTypeEqual(a, b *ast.FuncType) error + func GenDeclEqual(a, b *ast.GenDecl) error + func IdentEqual(a, b *ast.Ident) error + func IfStmtEqual(a, b *ast.IfStmt) error + func IndexExprEqual(a, b *ast.IndexExpr) error + func InterfaceEqual(a, b *ast.InterfaceType) error + func KeyValueExprEqual(a, b *ast.KeyValueExpr) error + func LoadAstFile(file string) (*ast.File, error) + func NodeEqual(a, b ast.Node) error + func RangeStmtEqual(a, b *ast.RangeStmt) error + func RemoveDeclByName(declarations []ast.Decl, name string) []ast.Decl + func RemoveGenDeclByName(declarations []ast.Decl, name string) []ast.Decl + func RemoveImports(file *ast.File) + func RenameDeclarations(node ast.Node, oldName, newName string) + func ReturnStmtEqual(a, b *ast.ReturnStmt) error + func SelectorExprEqual(a, b *ast.SelectorExpr) error + func StarExprEqual(a, b *ast.StarExpr) error + func StructEqual(a, b *ast.StructType) error + func TypeSpecEqual(a, b *ast.TypeSpec) error + func UnaryExprEqual(a, b *ast.UnaryExpr) error + func ValueEqual(a, b *ast.ValueSpec) error + func WriteAstFile(file string, ast *ast.File) error + type ErrAdditionalFields struct + A []string + B []string + func (e ErrAdditionalFields) Error() string + type Field struct + Name string + Tag *ast.BasicLit + Type ast.Expr + func (f Field) ToAstField() *ast.Field + type Merger struct + File ast.File + func NewMerger(pkgName string) *Merger + func (m *Merger) Merge(b *ast.File, duplicatePostfix string) error