inlncmt.awk was my joke-ey guess at what such a thing might be called,
but gofmtcomment 
<https://pkg.go.dev/github.com/shuLhan/share/cmd/gofmtcomment> sounds just 
like what I want.

Many thanks,

-Steve

On Friday, 2 October 2020 at 12:02:11 UTC+1 Shulhan wrote:

>
>
> > On 2 Oct 2020, at 15.05, quin...@gmail.com <quin...@gmail.com> wrote:
> > 
> > Hi,
> > 
> > When I was writing C I used to use a script bcmt.awk (it might have been 
> one of russ's or erikQ's, I cannot remember) to convert c++ style comments 
> to K&R syle. Now I am a proud go programmer I find my fingers still want to 
> put starts before and after my slashes when writing comments.
> > 
> > Has anyone written inlncmt.awk or similar to help me fix my poor style? 
> Though this may sound simple it needs care to deal with /* and */ in 
> strings and multiline comments nicely. This is why I ask.
> > 
>
> I am not familiar with inlncmt.awk, did you mean a tools to convert from 
> "/**/" to "//" ?
> If yes, I have gofmtcomment [1].
>
> [1] https://pkg.go.dev/github.com/shuLhan/share/cmd/gofmtcomment
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c4b7173d-467e-4638-ab10-8dc0230c3f35n%40googlegroups.com.

Reply via email to