[go-nuts] Re: godoc (golang.org/x/tools/cmd/godoc) has become module-aware

2020-04-13 Thread Nelo Mitranim
@Hein Meling Thanks for the pointer, this actually helped. It gets installed into `$GOPATH/bin`, which actually IS in my `$PATH`, but `which godoc` shows `/usr/local/bin/godoc`. My `.profile` explicitly puts `$GOPATH/bin` first, but somehow my $PATH starts with all sorts of crap like

[go-nuts] Re: godoc (golang.org/x/tools/cmd/godoc) has become module-aware

2020-04-09 Thread Nelo Mitranim
Trying and failing to use this. Help would be appreciated. I'm working on a library module outside of GOPATH. The `go.mod` file is present. The `go` commands such as `go test` seem to run in module mode. But when I run `godoc -http=:6060`, it shows the standard library + packages from GOPATH,

Re: [go-nuts] New development tool: missing watch mode for "go"

2018-10-23 Thread Nelo Mitranim
@Henrik Comparing with general purpose watchers, being Go-specific makes it easier to remember and lets it work well for Go projects with no configuration. Mnemonically, it's invoked exactly like "go". It ignores non-Go files by default. I can imagine the "go" tool eventually getting a "-w"

[go-nuts] New development tool: missing watch mode for "go"

2018-10-23 Thread Nelo Mitranim
Good day gophers! I want to highlight a certain Go development tool. My golleagues (sic) and I have found it quite enjoyable to use: https://github.com/Mitranim/gow "gow" is the missing watch mode for the "go" command. It's invoked exactly like "go", but watches files and reruns the subcommand

[go-nuts] Re: struct literals require keys on GAE?

2018-09-01 Thread Nelo Mitranim
Struct literals don't require keys, but `go vet` will complain about unkeyed fields for a struct type from another package. It won't complain about unkeyed fields for a struct from the same package. -- You received this message because you are subscribed to the Google Groups "golang-nuts"