Andrey Burov
Andrey Burov
If you change files in multiple directories, `go generate` will return an error. ``` named files must all be in one directory; have foo and bar ```
## Summary Adds OnF method to mock.Mock and mock.Call to allow defining mock expectations using function references instead of string method names. ## Changes * Added OnF method to mock.Mock...
The namespace is optional. Nested structs without a namespace are useful for embedded structs. ```go var metrics struct { BaseMetrics Sub SubMetrics `namespace:"sub"` SomeCounter func(...) prometheus.Counter } ```