qur / withmock

Automatic Go package mock generation tool
Other
71 stars 9 forks source link

Redeclared in this block previous declaration at #60

Closed Ronniexie closed 5 years ago

Ronniexie commented 5 years ago

ERROR: When mock labix.org/v2/mgo . go install labix.org/v2/mgo labix.org/v2/mgo/saslstub.go:7:60: saslNew redeclared in this block previous declaration at labix.org/v2/mgo/saslimpl.go:7:60

Reason: The first line of the labix.org/v2/mgo/saslstub.go is "//+build" The first line of the labix.org/v2/mgo/saslimpl.go is "//+build"

But, lib/mock.go just judge "// +build" , no "//+build".