goose: require pointer for first argument to goose.Bind (google/go-cloud#31)
Fixes google/go-cloud#15
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user