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>
8 lines
85 B
Go
8 lines
85 B
Go
//+build gooseinject
|
|
|
|
package main
|
|
|
|
//goose:use provideBar
|
|
|
|
func injectFooer() Fooer
|