Re: [go-nuts] Help with Go channels and select talk

2019-12-11 Thread Egon Kocjan
My demo is based on a real problem in our code. The issue here is that I cannot paste proprietary code and it's large and complex anyway. I distilled the problem to a bidi-communication coding exercise. The "go srv" in the real code is an external process with stdin and stdout with a simple lin

[go-nuts] Re: Help with Go channels and select talk

2019-12-11 Thread Egon Kocjan
Interesting suggestion, but I added the implementation with buffer = 1 here and it still deadlocks: https://github.com/egonk/chandemo/blob/master/2_3.go#L5 It stopped deadlocking when buffer = 5, so I think it will be a nice lesson about hiding design problems with buffers. Did you have somethi

[go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread nanmu42
I think this is brilliant! Hoping to use it in my next project. -- 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. To view

Re: [go-nuts] What is the meaning of the "go" line in go.mod

2019-12-11 Thread Caleb Spare
There is ongoing discussion here: https://github.com/golang/go/issues/30791 Unfortunately it has been taking way too long for this to get documented. People are spending a lot of time debating what the go directive should be in go.mod files in their projects because there is no official recommenda

Re: [go-nuts] What is the meaning of the "go" line in go.mod

2019-12-11 Thread Kurtis Rader
On Wed, Dec 11, 2019 at 3:57 PM George Hartzell wrote: > What meaning should I attach to the "go" line in go.mod, e.g. > > go 1.13 > > It's not mentioned in the module wiki's [list of go mod > directives](https://github.com/golang/go/wiki/Modules#gomod). > I don't know if there is a more can

[go-nuts] What is the meaning of the "go" line in go.mod

2019-12-11 Thread Everton Marques
https://www.reddit.com/r/golang/comments/b0b8k3/what_version_should_the_gomod_go_directive_be_set/ -- 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+uns

[go-nuts] What is the meaning of the "go" line in go.mod

2019-12-11 Thread George Hartzell
Hi All, What meaning should I attach to the "go" line in go.mod, e.g. go 1.13 It's not mentioned in the module wiki's [list of go mod directives](https://github.com/golang/go/wiki/Modules#gomod). It seems to be the version of the `go` command that last touched the go.mod file. What, if a

Re: [go-nuts] Re: Where is the middle of Brazil?

2019-12-11 Thread JuciÊ Andrade
A Brazilian friend from the C++ group accepted your challenge and found the population center. It's here: https://goo.gl/maps/uNSA95Ej4PYLzvgp7 On Saturday, December 7, 2019 at 8:12:28 PM UTC-3, Marcin Romaszewicz wrote: > > As a bonus challenge, try to compute the population center of Brazil :)

Re: [go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread kyle
Vasiliy, Take a look at the supported examples. sqlc has no problem handling five joins and a having clause. Kyle On Wednesday, December 11, 2019 at 12:18:20 PM UTC-8, Vasiliy Tolstov wrote: > > Thanks! But how about real world cases like joining 5 tables and using > having and other stuff? >

Re: [go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread Vasiliy Tolstov
Thanks! But how about real world cases like joining 5 tables and using having and other stuff? ср, 11 дек. 2019 г. в 22:48, : > > Hey gophers, > > I'm excited to announce sqlc, my project for turning SQL into type-safe Go. > With sqlc, the following SQL: > > > CREATE TABLE authors ( > id BIGSER

[go-nuts] Announcing sqlc: Compile SQL queries to type-safe Go

2019-12-11 Thread kyle
Hey gophers, I'm excited to announce sqlc, my project for turning SQL into type-safe Go. With sqlc, the following SQL: CREATE TABLE authors ( id BIGSERIAL PRIMARY KEY, name text NOT NULL, bio text ); -- name: GetAuthor :one SELECT * FROM authors WHERE id = $1 LIMIT 1; gets turned into t

Re: [go-nuts] net/smtp Client.hello() returns a single error and drops the ehlo error entirely

2019-12-11 Thread chriswarth
On Friday, July 1, 2016 at 2:16:24 PM UTC-7, Ian Lance Taylor wrote: > > I suggest that if EHLO returns a non-nil error and HELO returns an > EOF, then the hello method should return the EHLO error. > > That said, does this case actually happen in the real world? > > YES this happens! And it

[go-nuts] Re: TLS Cipher suites TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8

2019-12-11 Thread nasaproductions
Ok it doesn’t. Will we support it? Seems like there aren’t any CCM ciphers on that list. -- 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...@g

[go-nuts] Re: TLS Cipher suites TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8

2019-12-11 Thread Brian Candler
https://golang.org/pkg/crypto/tls/#pkg-constants -- 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. To view this discussion

[go-nuts] [long STW] I have a problem with STW, which PauseNs max > 4s

2019-12-11 Thread kcn
go version = 1.9 system: centos6 cpu: Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz ram: 256G When I just start the program is normal, but after a week, I have got a serious problem. use this command: curl -s http://localhost:6060/debug/pprof/heap?debug=1 | grep -A 100 runtime.MemStats # runtime.M