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
19 lines
370 B
Go
19 lines
370 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 InitializeEvent(phrase string) (Event, error) {
|
|
message := NewMessage(phrase)
|
|
greeter := NewGreeter(message)
|
|
event, err := NewEvent(greeter)
|
|
if err != nil {
|
|
return Event{}, err
|
|
}
|
|
return event, nil
|
|
}
|