goose: fix outdated docs (google/go-cloud#27)
This commit is contained in:
5
goose.go
5
goose.go
@@ -20,7 +20,8 @@ type ProviderSet struct{}
|
|||||||
|
|
||||||
// NewSet creates a new provider set that includes the providers in
|
// NewSet creates a new provider set that includes the providers in
|
||||||
// its arguments. Each argument is either an exported function value,
|
// 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 {
|
func NewSet(...interface{}) ProviderSet {
|
||||||
return ProviderSet{}
|
return ProviderSet{}
|
||||||
}
|
}
|
||||||
@@ -32,7 +33,7 @@ func NewSet(...interface{}) ProviderSet {
|
|||||||
// Example:
|
// Example:
|
||||||
//
|
//
|
||||||
// func injector(ctx context.Context) (*sql.DB, error) {
|
// 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 {
|
func Build(...interface{}) string {
|
||||||
return "implementation not generated, run goose"
|
return "implementation not generated, run goose"
|
||||||
|
|||||||
Reference in New Issue
Block a user