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
18 lines
255 B
Go
18 lines
255 B
Go
// Code generated by Wire. DO NOT EDIT.
|
|
|
|
//go:generate go run github.com/google/wire/cmd/wire
|
|
//+build !wireinject
|
|
|
|
package main
|
|
|
|
import (
|
|
"example.com/foo"
|
|
)
|
|
|
|
// Injectors from wire.go:
|
|
|
|
func injectFooer() foo.Fooer {
|
|
bar := provideBar()
|
|
return bar
|
|
}
|