[pkg-go] Bug#835377: moreinfo

Martín Ferrari tincho at tincho.org
Mon Oct 10 01:37:25 UTC 2016


tags 835377 + moreinfo
thanks

Hi,

What you are describing sounds related to
https://github.com/golang/go/issues/6654 and
https://github.com/golang/build/commit/bd6b12a04d05260cd28f207ee1d9663a77cf4c24

But I am not sure what is failing for you. If I run go doc without
GOROOT or GOPATH set, it finds correctly the standard library packages:


$ go doc os.open
func Open(name string) (*File, error)
    Open opens the named file for reading. If successful, methods on the
    returned file can be used for reading; the associated file
descriptor has
    mode O_RDONLY. If there is an error, it will be of type *PathError.


And if I set GOPATH, I can see docs for any arbitrary installed go package:


$ GOPATH=/usr/share/gocode go doc
github.com/prometheus/client_golang/prometheus
package prometheus // import
"github.com/prometheus/client_golang/prometheus"

Package prometheus provides metrics primitives to instrument code for
monitoring. It also offers a registry for metrics. Sub-packages allow to
[...]

-- 
Martín Ferrari (Tincho)



More information about the Pkg-go-maintainers mailing list