Files
wire/internal/goose/testdata/Chain/foo/foo.go
Ross Light f8e446fa17 goose: use marker functions instead of comments
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>
2018-11-12 14:09:56 -08:00

27 lines
283 B
Go

package main
import (
"fmt"
"codename/goose"
)
func main() {
fmt.Println(injectFooBar())
}
type Foo int
type FooBar int
var Set = goose.NewSet(
provideFoo,
provideFooBar)
func provideFoo() Foo {
return 41
}
func provideFooBar(foo Foo) FooBar {
return FooBar(foo) + 1
}