[go-nuts] slog formatter funcs? (e.g. slog.Infof)

2023-12-12 Thread 'Billy Lynch' via golang-nuts
Hi! I've been playing around with the new slog package, and I noticed that it was missing formatter funcs (Infof, Errorf, etc). I'm interested in adding these, but I wasn't sure if this was done intentionally since the godoc calls out this type of functionality in examples

[go-nuts] golang.org/x/crypto/ssh fix pre-announcement

2023-12-12 Thread Roland Shoemaker
Hello gophers, We plan to issue a security fix for the golang.org/x/crypto/ssh package in the golang.org/x/crypto module on Monday, December 18th. This will cover CVE-2023-48795. Following our security policy, this is the pre-announcement of that fix. Cheers, Roland on behalf of the Go team --

[go-nuts] Re: Idiomatic optional struct fields: zero vs magic value vs bool

2023-12-12 Thread Rick
For my work, the most common place I handle this is POST JSON => Unmarshal to Go struct =-> SQL query. When unmarshaling a JSON body with possibly null fields, like you, I declare the corresponding Go struct fields as pointers. And have wrappers IfNullString(), IfNullInt() etc to convert to a s

Re: [go-nuts] http2 client has no cached connections

2023-12-12 Thread Eli Lindsey
The http2 client relies on the http/1.1 client doing the dial and uses its established connections - this error shows up when the http/1.1 client has no pooled TLS connections for the http2 client to use. The issue is that the httptest server is using a self-signed certificate, the client hasn’

[go-nuts] http2 client has no cached connections

2023-12-12 Thread Nik Steffen
Hi fellow gophers, I already asked my Question on r/golang but could not get an answer despite >2500 views. So i wanted it to try here as i imagine people are a little more in the hard stuff. Currently I am struggling with a problem regarding an http2 client playing around with an issue in o