Re: [go-nuts] does struct pointer *a == *b make sense?

2018-11-28 Thread Youqi yu
corresponding non-blank ><https://golang.org/ref/spec#Blank_identifier> fields are equal. > > You can go through that part of the spec for greater understanding of the > equality operator. > > https://golang.org/ref/spec#Comparison_operators > > > Ragar

[go-nuts] does struct pointer *a == *b make sense?

2018-11-22 Thread Youqi yu
type T { Name string } a := {Name:"test"} b :={Name:"test"} *a == *b Hi, all, I am beginner at golang, I have a question that when compare struct equality, I was told to use reflect.DeepEqual or make my own function. but the result of above code is true. Does it mean struct a equals struct b?

[go-nuts] http client GET with err : dial tcp:look up xxxxx: Temporary failure in name resolution

2018-08-26 Thread Youqi yu
Hi : as the topic, did anyone met this problem before? I set http client timeout for 2 second, generally It works fine. But sometimes It blocked for more than 4 minutes ,even 14minutes. The goroutines keeps inc as many requests come in. After that block time all request return this error.