Skip to content

Commit

Permalink
Add gokit/kit/endpoint import for the generated endpoint file
Browse files Browse the repository at this point in the history
  • Loading branch information
lukyth authored and kujtimiihoxha committed Sep 8, 2017
1 parent 0327e75 commit 8dd56d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ func (sg *ServiceInitGenerator) generateEndpoints(name string, iface *parser.Int
servicePath = strings.Replace(servicePath, "\\", "/", -1)
serviceImport := projectPath + "/" + servicePath
file.Imports = []parser.NamedTypeValue{
parser.NewNameType("", "\"github.com/go-kit/kit/endpoint\""),
parser.NewNameType("", "\""+serviceImport+"\""),
}
file.Methods = []parser.Method{
Expand Down

0 comments on commit 8dd56d0

Please sign in to comment.