Files
wire/internal/goose/testdata/MultiUse/foo/foo.go
2018-11-12 14:09:56 -08:00

21 lines
248 B
Go

package main
import "fmt"
func main() {
fmt.Println(injectFooBar())
}
type Foo int
type FooBar int
//goose:provide Foo
func provideFoo() Foo {
return 41
}
//goose:provide FooBar
func provideFooBar(foo Foo) FooBar {
return FooBar(foo) + 1
}