[go-nuts] panic during panic

2019-07-03 Thread Mayank Jha
fatal error: freedefer with d._panic != nil goroutine 7909027 [running]: fatal error: unexpected signal during runtime execution panic during panic [signal SIGSEGV: segmentation violation code=0x1 addr=0x1c pc=0x459951] runtime stack: runtime.throw(0x185c7d9, 0x2a)

[go-nuts] recover from a unexpected fault address

2019-07-01 Thread Mayank Jha
unexpected fault address 0x0 fatal error: fault [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0xd9c026] goroutine 11707890 [running]: runtime.throw(0x13c74b7, 0x5) /usr/local/go/src/runtime/panic.go:617 +0x72 fp=0xc0080ac5f0 sp=0xc0080ac5c0 pc=0x42f5c2 runtime.sigpanic()

[go-nuts] Panic during proto Marshal

2019-06-19 Thread Mayank Jha
I am getting the *runtime error: invalid memory address or nil pointer dereference, *with the following stack trace, but only occasionally when I try to proto.Marshal() a proto message. [{"file":"/go/src/github.com/carousell/Cats/Cats/analytics/analytics.go", >

[go-nuts] interface array and ... operator

2018-10-23 Thread Mayank Jha
why does A() not work while B works here, https://play.golang.org/p/59bpr8TCIge -- 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] Sharing code on playground disabled.

2017-11-22 Thread mayank jha
Does singapore come under restrictions ? On Nov 22, 2017 10:08 PM, "Axel Wagner" wrote: > AFAIK the Go playground has IP-based restrictions for when you are in an > export-restricted country (like Iran), just like golang.org is not > reachable there. The reason

[go-nuts] Sharing code on playground disabled.

2017-11-22 Thread mayank . jha
Is there a reason for disabling it ? -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit

[go-nuts] Can I convert bytes.Buffer object to a string, and vice-versa ?

2016-07-11 Thread Mayank Jha
Can I convert bytes.Buffer object to a string, and vice-versa , getting the original bytes.Buffer object back from the string ? -- 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,

[go-nuts] Re: Make a multi part request from a stringified body payload

2016-07-11 Thread Mayank Jha
an later use > https://golang.org/pkg/mime/multipart/#NewWriter to create a multipart > request out of the individual parts. > > On Sunday, July 10, 2016 at 6:13:47 PM UTC-4, Mayank Jha wrote: >> >> I wish to store this string payload in a DB, and then construct a >>

[go-nuts] Re: Make a multi part request from a stringified body payload

2016-07-10 Thread Mayank Jha
Any clues people ? On Thursday, July 7, 2016 at 5:05:13 PM UTC+5:30, Mayank Jha wrote: > > I have the payload, > "--3c1e04950334427b > Content-Disposition: form-data; name="certificate"; filename="new-cert.pem" > Content-Type: app

[go-nuts] Re: Does http PATCH not read body data ?

2016-07-10 Thread Mayank Jha
Oops! I feel like banging my head in a stone wall. How silly of me! :P. Btw thanks! :) On Sunday, July 10, 2016 at 3:54:36 AM UTC+5:30, C Banning wrote: > > try: https://play.golang.org/p/2RDK8JVO_2 > > On Saturday, July 9, 2016 at 12:12:42 PM UTC-6, Mayank Jha wrote: >> &g

[go-nuts] Does http PATCH not read body data ?

2016-07-09 Thread Mayank Jha
I am using, https://play.golang.org/p/0_FhHaMNIz to implement a PATCH method endpoint. However when I try to read the body, using io.ioutil I am getting nothing in the body even though I send some data using, "curl -vvv -XPATCH localhost:8000 -d'sdsadkk'". Is this normal ? -- You received

[go-nuts] Make a multi part request from a stringified body payload

2016-07-07 Thread Mayank Jha
I have the payload, "--3c1e04950334427b Content-Disposition: form-data; name="certificate"; filename="new-cert.pem" Content-Type: application/octet-stream -BEGIN RSA PRIVATE KEY- -END RSA PRIVATE KEY- -BEGIN CERTIFICATE- -END CERTIFICATE-

[go-nuts] Re: Getting a lot of i/o timeouts in Go 1.4

2016-06-16 Thread Mayank Jha
Tried with Go 1.5, the problem persists. And the IP I gave was for showing purposes. I actually used an IP of a node which is a part of a closed network, and ran it from another node in the same network. On Thursday, June 16, 2016 at 1:44:56 PM UTC+5:30, Dave Cheney wrote: > > Go 1.4 isn't

[go-nuts] Getting a lot of i/o timeouts in Go 1.4

2016-06-16 Thread Mayank Jha
I am trying to run a large number of tcp connects https://play.golang.org/p/lNGWD-q028. However I am getting a lot of i/o timeouts. Is this a know issue, or I am missing something. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe