From 7a864edab7ce0ea4153d05fb6703a356861c6c3c Mon Sep 17 00:00:00 2001 From: Ross Light Date: Fri, 25 May 2018 12:36:39 -0700 Subject: [PATCH] goose: fix outdated docs (google/go-cloud#27) --- goose.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/goose.go b/goose.go index c814442..cbc2618 100644 --- a/goose.go +++ b/goose.go @@ -20,7 +20,8 @@ type ProviderSet struct{} // NewSet creates a new provider set that includes the providers in // its arguments. Each argument is either an exported function value, -// an exported struct (zero) value, or a call to Bind. +// an exported struct (zero) value, a provider set, a call to Bind, or +// a call to Value. func NewSet(...interface{}) ProviderSet { return ProviderSet{} } @@ -32,7 +33,7 @@ func NewSet(...interface{}) ProviderSet { // Example: // // func injector(ctx context.Context) (*sql.DB, error) { -// panic(Build(otherpkg.Foo, myProviderFunc, goose.Bind())) +// panic(goose.Build(otherpkg.FooSet, myProviderFunc)) // } func Build(...interface{}) string { return "implementation not generated, run goose"