github.com/cloudwego/kitex@v0.9.0/internal/mocks/README.md (about) 1 # Running Prerequisites 2 3 - Run command `go install github.com/golang/mock/mockgen@latest` to install gomock 4 - Run command `git clone github.com/cloudwego/netpoll` to clone netpoll in the parent directory of kitex. 5 6 # User's Guidance 7 8 - Add a line under the `files` parameter of update.sh. 9 - Fill in the go file path where the interface you want to mock is located. 10 - Fill in the path of the output mock file. 11 - Fill in the package name of the output mock file. 12 - Run `sh update.sh` to update mock files. 13 - Now you can use the generated gomock class to mock interface. Refer to https://github.com/golang/mock.