When I started "godoc -http=localhost:6060 -index" in a local repo it did read the go.mod file and display our docs for local github repos.
I wonder if it's go workspace aware yet? S On Mon, 12 Sept 2022 at 09:01, brainman <alex.brain...@gmail.com> wrote: > Thank you for instructions. > > I managed to run godoc. > > But godoc only displays standard library packages. > > Is it possible to configure godoc so it displays packages stored in > private github repos ? > > Thank you. > > Alex > > On Sunday, 11 September 2022 at 18:40:01 UTC+10 Jan Mercl wrote: > >> On Sun, Sep 11, 2022 at 4:20 AM Rob Pike <r...@golang.org> wrote: >> >> > It would be nice if gofmt still had its -http option. You could run an >> > old version. >> >> AFAICT, the option is still there. We're using it at work, installed on >> our gitlab server. >> >> me@3900x:~$ go install -v golang.org/x/tools/cmd/godoc@latest >> golang.org/x/tools/godoc/analysis >> golang.org/x/mod/semver >> golang.org/x/tools/internal/event/label >> golang.org/x/sys/execabs >> github.com/yuin/goldmark/util >> golang.org/x/tools/godoc/vfs >> golang.org/x/tools/godoc/static >> golang.org/x/tools/internal/event/keys >> golang.org/x/tools/internal/typeparams >> golang.org/x/net/context/ctxhttp >> golang.org/x/tools/playground >> golang.org/x/tools/godoc/redirect >> golang.org/x/tools/internal/event/core >> golang.org/x/tools/godoc/util >> golang.org/x/tools/godoc/vfs/gatefs >> golang.org/x/tools/godoc/vfs/httpfs >> golang.org/x/tools/godoc/vfs/mapfs >> golang.org/x/tools/godoc/vfs/zipfs >> golang.org/x/tools/internal/event >> golang.org/x/tools/internal/gocommand >> github.com/yuin/goldmark/text >> github.com/yuin/goldmark/ast >> github.com/yuin/goldmark/renderer >> github.com/yuin/goldmark/parser >> github.com/yuin/goldmark/renderer/html >> github.com/yuin/goldmark >> golang.org/x/tools/godoc >> golang.org/x/tools/cmd/godoc >> me@3900x:~$ go version -m $GOPATH/bin/godoc >> /home/me/bin/godoc: go1.19.1 >> path golang.org/x/tools/cmd/godoc >> mod golang.org/x/tools v0.1.12 >> h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= >> dep github.com/yuin/goldmark v1.4.13 >> h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE= >> dep golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 >> h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= >> dep golang.org/x/net v0.0.0-20220722155237-a158d28d115b >> h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0= >> dep golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f >> h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= >> build -compiler=gc >> build CGO_ENABLED=1 >> build CGO_CFLAGS= >> build CGO_CPPFLAGS= >> build CGO_CXXFLAGS= >> build CGO_LDFLAGS= >> build GOARCH=amd64 >> build GOOS=linux >> build GOAMD64=v1 >> me@3900x:~$ godoc -http :6060 & >> [1] 1554 >> me@3900x:~$ using module mode; GOMOD=/dev/null >> >> me@3900x:~$ >> >> -j >> >> -- > 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/f1c4296c-c68e-4be9-b481-f70647e74d98n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/f1c4296c-c68e-4be9-b481-f70647e74d98n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Steve Mynott <steve.myn...@gmail.com> rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50 -- 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/CANuZA8SrAMagDcufhRmFizYo2RPaZxWOP3J0fUSGY3bCG0XkyA%40mail.gmail.com.