wire/readme: wire.InterfaceValue should not return Foo{} (google/go-cloud#504)
This commit is contained in:
committed by
Ross Light
parent
b1fd26c92a
commit
b84ad6154f
@@ -339,7 +339,7 @@ For interface values, use `InterfaceValue`:
|
|||||||
```go
|
```go
|
||||||
func injectReader() io.Reader {
|
func injectReader() io.Reader {
|
||||||
wire.Build(wire.InterfaceValue(new(io.Reader), os.Stdin))
|
wire.Build(wire.InterfaceValue(new(io.Reader), os.Stdin))
|
||||||
return Foo{}
|
return nil
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user