Mock: refine go generate command

pull/2714/head
loyalsoldier 2020-08-25 16:23:33 +08:00
parent e036db835e
commit f3368b1d79
No known key found for this signature in database
GPG Key ID: 23829BBC1ACF2C90
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
package core
//go:generate go get -u github.com/golang/mock/gomock
//go:generate go install github.com/golang/mock/gomock
//go:generate go install github.com/golang/mock/mockgen
//go:generate mockgen -package mocks -destination testing/mocks/io.go -mock_names Reader=Reader,Writer=Writer io Reader,Writer