Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generation of Examples #53

Open
tmc opened this issue Nov 9, 2017 · 4 comments
Open

Support generation of Examples #53

tmc opened this issue Nov 9, 2017 · 4 comments

Comments

@tmc
Copy link

tmc commented Nov 9, 2017

No description provided.

@cweill
Copy link
Owner

cweill commented Apr 7, 2019

@tmc: Can you please provide an example of what this would look like?

@Azero-NG
Copy link

Azero-NG commented Jan 17, 2021

I think the following is what i and he need

source file

func XXX() {
}

generated example function in test file

func ExampleXXX() {

    //Output:
}

@Azero-NG
Copy link

if gotests have this feature, we will generate example functions quickly and easily like generating test functions.
image

@cweill
Copy link
Owner

cweill commented Jan 19, 2021

If anyone is willing to submit a PR, I'll review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants