Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-23 Thread 'Sebastien Binet' via golang-nuts
On Fri Sep 23, 2022 at 07:32 CET, brainman wrote: > Thank you Sebastian, > > That might actually work for me. I will play with it to see if it suits > us. > I still wish I can just use https://pkg.go.dev , but we cannot have > everything. > > I also want to thank you for writing http://github.com/g

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-22 Thread brainman
I did not have GO111MODULE set. a@spot:~$ env | grep GO GOROOT_BOOTSTRAP=/home/a/go1.18.5 GOROOT=/home/a/go GOPATH=/home/a a@spot:~$ and I use current Go tip. godoc only shows "Third party" section if I am inside of any go module directory, but not in /tmp . a@spot:~$ cd /tmp a@spot:/tmp$ godo

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-22 Thread brainman
Thank you Sebastian, That might actually work for me. I will play with it to see if it suits us. I still wish I can just use https://pkg.go.dev , but we cannot have everything. I also want to thank you for writing http://github.com/go-daq/canbus . I was using your package to control some equip

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread 'Sebastien Binet' via golang-nuts
On Mon Sep 12, 2022 at 11:04 CET, brainman wrote: > Thanks for the link. I briefly looked at that program, and I cannot even > figure it out how I can use it for my purpose - serve documentation for > about hundred of private github repos. I believe you can do this with this maintained fork of god

[go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
Thanks for the link. I briefly looked at that program, and I cannot even figure it out how I can use it for my purpose - serve documentation for about hundred of private github repos. Alex On Monday, 12 September 2022 at 11:42:23 UTC+10 tapi...@gmail.com wrote: > I don't know if it satisfies y

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
You probably run godoc from inside your module directory. Alex On Monday, 12 September 2022 at 18:31:11 UTC+10 Jan Mercl wrote: > On Mon, Sep 12, 2022 at 10:01 AM brainman wrote: > > > I managed to run godoc. > > > > But godoc only displays standard library packages. > > > > Is it possible to c

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
Thank you Steve. Indeed. If I run godoc from a directory inside of a repo, then godoc displays new section called "Third party". The section displays all my module code and all its dependencies. Unfortunately I have about hundred of repos on Github containing independent projects working on by

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread Jan Mercl
On Mon, Sep 12, 2022 at 10:01 AM brainman wrote: > 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 ? I use it with no configuration, '$ GO111MODULE=off godoc -http :6060

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread Steve Mynott
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 wrote: > Thank you for instructions. > > I managed to run godoc. > > Bu

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread brainman
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

[go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread tapi...@gmail.com
I don't know if it satisfies your need, but you can try Golds: https://go101.org/apps-and-libs/golds.html On Sunday, September 11, 2022 at 5:28:35 AM UTC+8 brainman wrote: > Hello Everyone, > > I would like to run go documentation server that have access to my private > code. > > Is it possible

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread Rob Pike
Yes, godoc. I need more sleep. -rob On Sun, Sep 11, 2022 at 6:39 PM Jan Mercl <0xj...@gmail.com> wrote: > > On Sun, Sep 11, 2022 at 4:20 AM Rob Pike 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 u

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread Jan Mercl
On Sun, Sep 11, 2022 at 4:20 AM Rob Pike 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@lates

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread brainman
Thanks for your suggestion, Rob. I just use go doc command. The website is for my colleagues. Alex On Sunday, 11 September 2022 at 12:20:37 UTC+10 Rob 'Commander' Pike wrote: > It would be nice if gofmt still had its -http option. You could run an > old version. > > -rob > > > On Sun, Sep 11,

[go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-11 Thread brainman
Thanks for the link, peterGo. Looks complicated to configure and run. I will try to run it when I have time. Alex On Sunday, 11 September 2022 at 08:01:03 UTC+10 peterGo wrote: > https://go.googlesource.com/pkgsite/ > > On Saturday, September 10, 2022 at 5:28:35 PM UTC-4 brainman wrote: > >> H

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-10 Thread Rob Pike
It would be nice if gofmt still had its -http option. You could run an old version. -rob On Sun, Sep 11, 2022 at 8:01 AM peterGo wrote: > > https://go.googlesource.com/pkgsite/ > > On Saturday, September 10, 2022 at 5:28:35 PM UTC-4 brainman wrote: >> >> Hello Everyone, >> >> I would like to ru

[go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-10 Thread peterGo
https://go.googlesource.com/pkgsite/ On Saturday, September 10, 2022 at 5:28:35 PM UTC-4 brainman wrote: > Hello Everyone, > > I would like to run go documentation server that have access to my private > code. > > Is it possible to do? > > I am happy to run the server myself, if it is easy to se