Skip to content

Mock code generation cli tool #13

@ysmood

Description

@ysmood

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions