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

Wrap inline code with ```go #7

Open
raphael opened this issue Dec 9, 2014 · 0 comments
Open

Wrap inline code with ```go #7

raphael opened this issue Dec 9, 2014 · 0 comments

Comments

@raphael
Copy link

raphael commented Dec 9, 2014

Would be nice if the tool wrapped code snippets that appear in header comments with code blocks so that go formatting is applied, so for example

// Foo is an awesome function
//     fmt.Printf("Foo: %v\n", foo())
// produces
//     Foo: 42
// Note that this never changes.
func foo() int { 
    return 42
}

Would get generated as:

Foo is an awesome function

     fmt.Printf("Foo: %v\n", foo())

produces

    Foo: 42

Note that this never changes.

func foo() int { 
    return 42
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant