Skip to content

Commit

Permalink
Make New func in service return service interface
Browse files Browse the repository at this point in the history
Exported function should return exported type.
  • Loading branch information
lukyth authored and kujtimiihoxha committed Sep 8, 2017
1 parent 2c48ebd commit 449c32f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (sg *ServiceInitGenerator) Generate(name string) error {
return s`, stub.Name),
[]parser.NamedTypeValue{},
[]parser.NamedTypeValue{
parser.NewNameType("s", "*"+stubName),
parser.NewNameType("s", iname),
},
)
s += "\n" + newMethod.String()
Expand Down

0 comments on commit 449c32f

Please sign in to comment.