From cfef90b8f068c5bb700db6b417fa3f7810cf499f Mon Sep 17 00:00:00 2001 From: shtrikulis Date: Sat, 9 Jan 2021 23:03:32 +0300 Subject: [PATCH] Prepare release 2.0.8.1 --- gen/generators/interfaces/generator.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gen/generators/interfaces/generator.go b/gen/generators/interfaces/generator.go index dfb51f5..18af0ba 100644 --- a/gen/generators/interfaces/generator.go +++ b/gen/generators/interfaces/generator.go @@ -5,7 +5,6 @@ package interfaces import ( "bytes" "fmt" - "go/ast" "go/format" "go/types" "io" @@ -103,13 +102,6 @@ func (g generator) writeOut(ctx *genall.GenerationContext, root *loader.Package, } func (g generator) generatePackage(ctx *genall.GenerationContext, root *loader.Package) []byte { - ctx.Checker.Check(root, func(node ast.Node) bool { - // ignore non-interfaces - _, isStruct := node.(*ast.StructType) - - return isStruct - }) - root.NeedTypesInfo() var serviceContract *parser.Object