R
R
rustler20002020-02-25 13:39:30
go
rustler2000, 2020-02-25 13:39:30

Is there a comment reformer for go?

Is there a command line reformatter for go?
To bring the width under the "standard" / set as a parameter?

It was like:

// Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
// Morbi tincidunt vehicula nibh, a pellentesque felis 
// pellentesque at. Duis leo augue. 
func Lorem() {
}


It became:
// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi tincidunt vehicula nibh, a pellentesque felis pellentesque 
// at. Duis leo augue. 
func Lorem() {
}


Naturally with godoc markup support

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
uvelichitel, 2020-02-25
@uvelichitel

Not exactly the same, but relevant. Vim has a reformatter for everything - the gq command and its flags.
:help gq

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question