[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 `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:`. It never occurred to 
me to check. Thanks for the suggestion! I'm off to figure out what's 
causing this...

Meanwhile, `$GOPATH/bin/godoc` works as expected and even announces running 
in module mode. The documentation of the local module is present on the 
webpage.  Thanks!

-- 
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/1e7b3863-fca3-47ff-ab6a-5dc710a66838%40googlegroups.com.


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

2020-04-11 Thread Hein Meling
Maybe the godoc command got installed in your $HOME/go/bin folder and this 
folder is not in your $PATH?

-- 
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/02d3b966-b770-4f71-80c2-fed436289468%40googlegroups.com.


[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, failing to include the current module. I've updated 
`godoc` via:

go get -u golang.org/x/tools/cmd/godoc

However I'm unable to check the installed `godoc` version, as it lacks such 
a subcommand, so I can't be sure if the installed version actually includes 
module support. The documentation doesn't give examples or mention modules 
at all. Any suggestions?

-- 
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/8897eda1-db92-405d-b4fc-a98f693b2619%40googlegroups.com.


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

2019-11-08 Thread marcelloh
It would have been nice, if there were installation instructions on the 
page are redirected to when you click that link, so people know how to get 
a newer version.


-- 
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/6cbd28ce-fff1-4609-b9a3-5e6fa79c8bc1%40googlegroups.com.


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

2019-11-08 Thread Ain


On Friday, November 8, 2019 at 8:52:07 PM UTC+2, Dmitri Shuralyov wrote:
>
> Hello gophers,
>
> godoc , the local web server that 
> displays documentation for Go packages (not to be confused with 
> https://godoc.org, the website), has been updated with support for Go 
> modules. (This was issue 33655 .)
>

Great news, thank you! 

Ain

-- 
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/ce9e20ff-9388-4e7e-bbcd-b2a088c8d5e8%40googlegroups.com.