Bind: takes a pointer for the second argument (#152)

This commit is contained in:
shantuo
2019-04-12 23:50:45 -07:00
committed by GitHub
parent 65ae46b7ea
commit e9e631cd71
20 changed files with 147 additions and 33 deletions

View File

@@ -75,7 +75,7 @@ var mockAppSet = wire.NewSet(
// For each mocked dependency, add a provider and use wire.Bind to bind
// the concrete type to the relevant interface.
newMockTimer,
wire.Bind(new(timer), new(mockTimer)),
wire.Bind(new(timer), new(*mockTimer)),
)
type timer interface {