To avoid making this CL too large, I did not migrate the existing goose comments through the repository. This will be addressed in a subsequent CL. Reviewed-by: Tuo Shan <shantuo@google.com>
22 lines
235 B
Go
22 lines
235 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println(injectFooer().Foo())
|
|
}
|
|
|
|
type Fooer interface {
|
|
Foo() string
|
|
}
|
|
|
|
type Bar string
|
|
|
|
func (b Bar) Foo() string {
|
|
return string(b)
|
|
}
|
|
|
|
func provideBar() Bar {
|
|
return "Hello, World!"
|
|
}
|