wire: use package names to disambiguate variables (google/go-cloud#386)

This commit is contained in:
Robert van Gent
2018-09-10 13:50:38 -07:00
committed by Ross Light
parent fab79bd5bd
commit c999a4d1b5
7 changed files with 128 additions and 50 deletions

View File

@@ -12,9 +12,9 @@ import (
// Injectors from wire.go:
func inject(context3 context2.Context, err2 struct{}) (context, error) {
context4, err := provide(context3)
mainContext, err := provide(context3)
if err != nil {
return context{}, err
}
return context4, nil
return mainContext, nil
}