Files
wire/internal/goose/testdata/ImportedInterfaceBinding/bar/goose.go
Ross Light 1380f96c06 goose: add interface binding
An interface binding instructs goose that a concrete type should be used
to satisfy a dependency on an interface type. goose could determine this
implicitly, but having an explicit directive makes the provider author's
intent clear and allows different concrete types to satisfy different
smaller interfaces.

Reviewed-by: Tuo Shan <shantuo@google.com>
2018-11-12 14:09:56 -08:00

10 lines
103 B
Go

//+build gooseinject
package main
import "foo"
//goose:use provideBar
func injectFooer() foo.Fooer