17 lines
179 B
Go
17 lines
179 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println(injectBar())
|
|
}
|
|
|
|
type foo int
|
|
type bar int
|
|
|
|
//goose:provide
|
|
//goose:optional f
|
|
func provideBar(f foo) bar {
|
|
return bar(f)
|
|
}
|