Such as run the command below:
go run github.com/ysmood/got/cmd/mock@latest w myWriter io.Writer
To output generated golang code to the stdout:
type myWriter struct {
got.Mock
}
func (w *myWriter) Write(p []byte) (n int, err error) {
return t.Proxy("Write").(func([]byte) (int, error))(p)
}
Such as run the command below:
To output generated golang code to the stdout: