internal/wire: remove support for go-cloud import path (#111)

This commit is contained in:
Ross Light
2019-01-28 13:57:58 -08:00
committed by shantuo
parent 3b0186f7df
commit bee5b6c7c7

View File

@@ -906,7 +906,7 @@ func isWireImport(path string) bool {
if i := strings.LastIndex(path, vendorPart); i != -1 && (i == 0 || path[i-1] == '/') {
path = path[i+len(vendorPart):]
}
return path == "github.com/google/wire" || path == "github.com/google/go-cloud/wire"
return path == "github.com/google/wire"
}
func isProviderSetType(t types.Type) bool {