wire/readme: wire.InterfaceValue should not return Foo{} (google/go-cloud#504)

This commit is contained in:
Yoichiro Shimizu
2018-10-07 08:12:55 +09:00
committed by Ross Light
parent b1fd26c92a
commit b84ad6154f

View File

@@ -339,7 +339,7 @@ For interface values, use `InterfaceValue`:
```go
func injectReader() io.Reader {
wire.Build(wire.InterfaceValue(new(io.Reader), os.Stdin))
return Foo{}
return nil
}
```