Logo
Explore Help
Register Sign In
admin/wire
1
0
Fork 0
You've already forked wire
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
13698e656aadb1c677063dba38807d4b36ca3c59
wire/internal/goose/testdata/InterfaceBindingReuse/foo/foo_goose.go

9 lines
113 B
Go
Raw Normal View History

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-04-02 14:08:17 -07:00
//+build gooseinject
package main
//goose:use provideBar
//goose:use provideFooBar
func injectFooBar() FooBar
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 28ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API