goose: require pointer for first argument to goose.Bind (google/go-cloud#31)

Fixes google/go-cloud#15
This commit is contained in:
Ross Light
2018-05-29 08:45:14 -07:00
parent 7a864edab7
commit e9a61ba66b
6 changed files with 22 additions and 17 deletions

View File

@@ -17,8 +17,8 @@ package main
import (
"fmt"
"github.com/google/go-cloud/goose"
"foo"
"github.com/google/go-cloud/goose"
)
func main() {
@@ -39,4 +39,4 @@ func provideBar() *Bar {
var Set = goose.NewSet(
provideBar,
goose.Bind(foo.Fooer(nil), (*Bar)(nil)))
goose.Bind((*foo.Fooer)(nil), (*Bar)(nil)))