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: How can I make io.Reader stop reading?

2022-09-10 Thread Munding
There's only one way(SetReadDeadline to timeout) to stop reading? 在2016年11月17日星期四 UTC+8 23:23:06 写道: > I was able to solve the problem with the SetReadDeadline function. > I check every n second some flag or channel whether to stop reading or > not. In case you use net sockets and your reader i

[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

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

2022-09-10 Thread brainman
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 setup, and if it requires no maintenance. I am also happy to use external company if they provide that kind of service.

Re: [go-nuts] Re: Any package implementing FIFO mutex?

2022-09-10 Thread Chris Lu
Thanks for sharing this gem! On Sat, Sep 10, 2022 at 1:43 AM gbarr wrote: > You could use golang.org/x/sync/semaphore NewWeighted(1) Aquire will > return in order > > Graham > > On Friday, September 9, 2022 at 8:12:46 PM UTC+1 ChrisLu wrote: > >> "sync.Mutex" is not FIFO. Has any package impleme

[go-nuts] Re: Any package implementing FIFO mutex?

2022-09-10 Thread gbarr
You could use golang.org/x/sync/semaphore NewWeighted(1) Aquire will return in order Graham On Friday, September 9, 2022 at 8:12:46 PM UTC+1 ChrisLu wrote: > "sync.Mutex" is not FIFO. Has any package implemented a dropping for FIFO > mutex? > > One similar solution is to use buffered channel,