Re: [go-nuts] runtime: panic in net/http.(*Server).Serve

2019-11-25 Thread Robert Engels
It looks like the race detector outputs when it detects a race, not at program end, so it doesn’t apply in your case. So, I would look into cgo and other unsafe usages. > On Nov 26, 2019, at 12:18 AM, 黃翔蔚 wrote: > > Hi Robert, > I don't understand what you mean. Could you please explain more

Re: [go-nuts] runtime: panic in net/http.(*Server).Serve

2019-11-25 Thread 黃翔蔚
Hi Robert, I don't understand what you mean. Could you please explain more detail? Thanks. Walter Robert Engels於 2019年11月26日星期二 UTC+8上午9時16分42秒寫道: > > I think with -race you want to exit before it crashes. After running a > while. Can’t remember though. Check the docs. > > On Nov 25, 2019, at 7

Re: [go-nuts] [ANN] Golang Oriented to Aspects (goa) v0.0.1 is released!!!

2019-11-25 Thread Iván Corrales Solera
Thanks for feedback! Totally agree I should publish documentation about how goa works. I will publish asap. On Tuesday, November 26, 2019 at 12:26:40 AM UTC+1, Robert Engels wrote: > > I think a “how it works” and “usages” in the documentation would be > helpful. Great work. > > On Nov 25, 2019

Re: [go-nuts] runtime: panic in net/http.(*Server).Serve

2019-11-25 Thread Robert Engels
I think with -race you want to exit before it crashes. After running a while. Can’t remember though. Check the docs. > On Nov 25, 2019, at 7:10 PM, 黃翔蔚 wrote: > >  > Hi lan, > Thanks for your reply. > I built the program with -race option. There is no news in crash dump. > I will review cgo p

Re: [go-nuts] runtime: panic in net/http.(*Server).Serve

2019-11-25 Thread 黃翔蔚
Hi lan, Thanks for your reply. I built the program with -race option. There is no news in crash dump. I will review cgo portion again. Thanks again. Walter Ian Lance Taylor於 2019年11月26日星期二 UTC+8上午3時12分06秒寫道: > > On Mon, Nov 25, 2019 at 9:23 AM 黃翔蔚 > > wrote: > > > > My program will get panic i

[go-nuts] Re: ? How restrict usage of packages ?

2019-11-25 Thread Scott Pakin
On Monday, November 25, 2019 at 9:55:55 AM UTC-7, Daniel Norte Moraes wrote: > >I Want create and permite my users to create go lang programs mostly > with full capabilities from > golang itself, but with some direct capabilities as net and filesystem > striped from direct accesss; mostly >

Re: [go-nuts] [ANN] Golang Oriented to Aspects (goa) v0.0.1 is released!!!

2019-11-25 Thread Robert Engels
I think a “how it works” and “usages” in the documentation would be helpful. Great work. > On Nov 25, 2019, at 5:19 PM, Dimas Prawira > wrote: > >  > Nice... #clap > > BR > > >> On Tue, Nov 26, 2019, 4:47 AM Iván Corrales Solera >> wrote: >> Hey folks! >> >> I am so happy yo announce t

Re: [go-nuts] [ANN] Golang Oriented to Aspects (goa) v0.0.1 is released!!!

2019-11-25 Thread Dimas Prawira
Nice... #clap BR On Tue, Nov 26, 2019, 4:47 AM Iván Corrales Solera < ivan.corrales.sol...@gmail.com> wrote: > Hey folks! > > I am so happy yo announce the first release of *Goa*. Goa is a library > that will drive you to the AOP (Aspect Oriented Paradigm) world! > > Even though I still have to

[go-nuts] [ANN] Golang Oriented to Aspects (goa) v0.0.1 is released!!!

2019-11-25 Thread Iván Corrales Solera
Hey folks! I am so happy yo announce the first release of *Goa*. Goa is a library that will drive you to the AOP (Aspect Oriented Paradigm) world! Even though I still have to work hard on this library, I would appreciate some feedback for you guys!. The full documentation can be found here

Re: [go-nuts] early close of http.Client's Response.Body

2019-11-25 Thread Andy Balholm
Read-to-EOF is one of several conditions for connection reuse: - Was the response body fully read (to EOF)? - Does the server support HTTP keep-alives? - Is DisableKeepAlives set to false (the default) on the http.Transport that the client uses? A connection will only be reused if all of these a

Re: [go-nuts] runtime: panic in net/http.(*Server).Serve

2019-11-25 Thread Ian Lance Taylor
On Mon, Nov 25, 2019 at 9:23 AM 黃翔蔚 wrote: > > My program will get panic issue from time to time. > I don't have procedure to reproduce this issue. > So far, the issue is happen on 10/23, 10/25, 10/30, 11/14 and 11/22. > In the last try, I capture packets by wireshark, it seems no packet incoming

Re: [go-nuts] early close of http.Client's Response.Body

2019-11-25 Thread Liam Breck
On Mon, Nov 25, 2019, 10:32 AM Andy Balholm wrote: > > > > On Nov 25, 2019, at 9:54 AM, Liam wrote: > > > > - does the read-to-EOF stipulation also apply to Client.Get/Post() ? > > Yes. Those methods are fairly simple wrappers around Do. > > > - why does Response.Body.Close() before io.EOF not r

[go-nuts] Re: 1.13.4: go mod: weird permissions in pkg/mod after go get

2019-11-25 Thread 'Bryan Mills' via golang-nuts
The go/loader issue looks like https://golang.org/issue/34860 combined with some other bug in one of the go/loader error-handling paths. (Note that in general we recommend golang.org/x/tools/go/packages for Go tools that support module mode.)

Re: [go-nuts] early close of http.Client's Response.Body

2019-11-25 Thread Andy Balholm
> On Nov 25, 2019, at 9:54 AM, Liam wrote: > > - does the read-to-EOF stipulation also apply to Client.Get/Post() ? Yes. Those methods are fairly simple wrappers around Do. > - why does Response.Body.Close() before io.EOF not release unread buffers or > otherwise prepare it for persistence?

[go-nuts] early close of http.Client's Response.Body

2019-11-25 Thread Liam
Scenario: Sending a client request and only reading the whole Response.Body for certain .StatusCode values, and/or reading only the first N bytes. Docs for Client.Do() "If the Body is not both read to EOF and closed, the Client's underlying RoundTripper (typically Transport) may not be able to r

[go-nuts] Re: ? How restrict usage of packages ?

2019-11-25 Thread JuciÊ Andrade
Add a script to your users continuous integration tool or even to their source control management. Whenever software is compiled or commited your script will search for imports in Go source files. If your script finds a forbidden package it should flag an error with a friendly message like this:

Re: [go-nuts] looking for a snippet to get started with Tcell or Termbox-go

2019-11-25 Thread Robert Engels
Use gcui. Check out github.com/robaho/go-trader for an example. > On Nov 25, 2019, at 11:23 AM, serge.hulne.bl...@gmail.com wrote: > >  > Hi, > > I am looking for the easiest way to emulate ncurses using Go. > > More precisely, I am looking for a snippet of code (an example basically) on > h

[go-nuts] looking for a snippet to get started with Tcell or Termbox-go

2019-11-25 Thread serge . hulne . blues
Hi, I am looking for the easiest way to emulate ncurses using Go. More precisely, I am looking for a snippet of code (an example basically) on how to do the following: "put a given character directly on a location (x,y) on a terminal" using either Tcell or Termbox-go or in pseudo-code: *pu

[go-nuts] ? How restrict usage of packages ?

2019-11-25 Thread Daniel Norte Moraes
Hi! I Want create and permite my users to create go lang programs mostly with full capabilities from golang itself, but with some direct capabilities as net and filesystem striped from direct accesss; mostly capabilities as database access, and network access will be encapsuled in ours t