Re: [go-nuts] Tests skipping

2020-03-23 Thread Brian Candler
On Monday, 23 March 2020 06:37:45 UTC, Shane H wrote: > > The output of the go test is > TestQuoteDate (skipping) // or words to that effect > > Could you copy-paste the exact, verbatim output of the test run when it does this? With a few lines either side for context? -- You received this

Re: [go-nuts] Re: Mem-Leak in Go method

2020-03-23 Thread Robert Engels
Yes. You have a leak in your Go code. It shows you the object types that are taking up all of the space. There is no root analysis available in Go. Read the paper I linked to. > On Mar 23, 2020, at 9:12 AM, Nitish Saboo wrote: > >  > Hi, > > I used something like the following to generate

Re: [go-nuts] Tests skipping

2020-03-23 Thread Brian Hatfield
I noticed that the `t.Run` call in the sample code provided is `t,Run` instead (note the comma). I'm not sure how that compiles, but it might be worth checking on that. On Mon, Mar 23, 2020 at 3:16 PM Ian Lance Taylor wrote: > On Sun, Mar 22, 2020 at 11:38 PM Shane H wrote: > > > > On Monday,

Re: [go-nuts] Tests skipping

2020-03-23 Thread Ian Lance Taylor
On Sun, Mar 22, 2020 at 11:38 PM Shane H wrote: > > On Monday, March 23, 2020 at 2:49:46 PM UTC+11, Ian Lance Taylor wrote: >> >> On Sun, Mar 22, 2020 at 7:10 PM Shane H wrote: >> > >> > I'm a lot confused by the behaviour of some tests I have at the moment, >> > they're skipping.. when there's

[go-nuts] Re: go tip: random high CPU usage on VirtualBox

2020-03-23 Thread Personal
> On 15 Mar 2020, at 07.02, Ian Lance Taylor wrote: > > On Sat, Mar 14, 2020 at 1:56 AM Mhd Shulhan wrote: >> >> Pada tanggal Sab, 14 Mar 2020 06.15, Ian Lance Taylor >> menulis: >>> >>> On Fri, Mar 13, 2020 at 1:05 AM Mhd Shulhan wrote: > On 12 Mar 2020, at 13.13,

[go-nuts] How to deal with 'Expect:100-continue'

2020-03-23 Thread Shigeru Ota
I want to return "too large body" response whenever a request's body is larger than setting. However, when the request has "Expect" header, the connection may be reset if the requestbody is not read to end. Then, I added check function. The function check 'Content-Length' and return error

[go-nuts] Re: Docker Server access Failed

2020-03-23 Thread Ali Hassan
I will try thank you On Sunday, March 22, 2020 at 6:28:07 PM UTC+5, Ali Hassan wrote: > > Please help me this is my repo where I'm working docker-golang . May be > some problem my server access failed on my browser > > https://github.com/ali2210/DockerTest > -- You received this message

Re: [go-nuts] Re: Mem-Leak in Go method

2020-03-23 Thread Nitish Saboo
Hi, I used something like the following to generate a memprof for 100 minutes func main() { flag.Parse() if *cpuprofile != "" { f, err := os.Create(*cpuprofile) if err != nil { fmt.Println("could not create CPU profile: ", err) } defer f.Close() // error handling omitted for example if err :=

Re: [go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-23 Thread 'Axel Wagner' via golang-nuts
On Mon, Mar 23, 2020 at 10:28 AM Adrian Ratnapala < adrian.ratnap...@gmail.com> wrote: > I think this is the classic dynamic vs. static typing trade-off. I don't fully agree here - I think it's perfectly possible to have all of the flexibility and all of the static type-checking. I'm having

Re: [go-nuts] libgo is more fast that grouting.

2020-03-23 Thread Brian Candler
The best approach is not to feed the troll. Let's all just abandon this thread now. -- 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

Re: [go-nuts] libgo is more fast that grouting.

2020-03-23 Thread Sokolov Yura
You are really toxic man. You are much more toxic than me. If you don't like Go, why do you write your feces here? Why do you like to be THE TROLL? Do you like attention so much so you are ready to be ridiculous for it? It looks so strange to me. воскресенье, 22 марта 2020 г., 13:42:16 UTC+3

Re: [go-nuts] If in doubt prefer to wrap errors with %v, not %w?

2020-03-23 Thread Adrian Ratnapala
On Mon, 23 Mar 2020 at 11:22, Axel Wagner wrote: > • A function takes an io.Reader to parse the stream into some data structure > (think a json-parser). It obviously uses no other input or abstraction or > state. It makes sense to wrap the error - this allows you to provide > structured extra

Re: [go-nuts] Tests skipping

2020-03-23 Thread Shane H
On Monday, March 23, 2020 at 2:49:46 PM UTC+11, Ian Lance Taylor wrote: > > On Sun, Mar 22, 2020 at 7:10 PM Shane H > > wrote: > > > > I'm a lot confused by the behaviour of some tests I have at the moment, > they're skipping.. when there's no skip or timeout or... anything that I > can see