[I set an explicit Reply-To header because I do not want duplicate
emails.  Please do not CC me; I read this list.]

* mhhc...@gmail.com <mhhc...@gmail.com> [170509 07:40]:
> : ( thanks
> 
> $ man gofmt
> Aucune entrée de manuel pour gofmt
> /no such entry/

One of many advantages of the Debian distribution is that policy
mandates that any command which the end user is expected to use must
have a man page.  Many thanks go to the Debian maintainers of the Go
packages for their hard work, including, but not limited to, converting
Go package documentation into proper man pages.  This is not busy work;
rather it is very, very helpful!

> *$ gofmt -husage: gofmt [flags] [path ...]  -r string        rewrite rule 
> (e.g., 'a[b:len(a)] -> a[b:]')*
> 
> https://golang.org/cmd/gofmt/#hdr-Examples

Indeed, this is the right place to find the official Go documentation
for this tool.

> How to take advantage of it ?
> He needs to add new func, probably.
> And maybe to rename expr.Call.Name.

If I were trying to extricate myself from the OP's position, my first
attempt would be

  gofmt -r 'print -> debug.Print'

and then add a debug package where I could make that function empty if I
wanted.  If you want to get fancy, use build tags so that

  go build -tags debug

will build with debugging turned on, but without the tag, the debug
functions are empty.

...Marvin

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to