Change the go:generate command to use the full go run ... command to ensure the version specified in the current go module is used instead of the global binary. Fixes #160
14 lines
220 B
Go
14 lines
220 B
Go
// Code generated by Wire. DO NOT EDIT.
|
|
|
|
//go:generate go run github.com/google/wire/cmd/wire
|
|
//+build !wireinject
|
|
|
|
package main
|
|
|
|
// Injectors from wire.go:
|
|
|
|
func inject(foo Foo) *Bar {
|
|
bar := NewBar(foo)
|
|
return bar
|
|
}
|