[go-nuts] tls.VerifyClientCertIfGiven

2024-05-15 Thread Jochen Voss
Hello, In a server I use tls.Config.ClientAuth=tls.VerifyClientCertIfGiven. If then a client manages to connect and I can see a certificate in http.Request.TLS.PeerCertificates, does this just mean that the client has the certificate, or does this also prove that the client has the associated pri

[go-nuts] Runtime error with golang 1.22.x

2024-05-15 Thread Masanori Matsumoto
Since updating golang to v1.22, I'm getting errors in my tests using pact-go. So I raised issue to the pact-go repository: https://github.com/pact-foundation/pact-go/issues/402 The error is as follows: --- runtime: g 19: unexpected return pc for github.com/pact-foundation/pact-go/v2/internal/na

Re: [go-nuts] Re: raw bit types without arithmetic

2024-05-15 Thread 'Kevin Chowski' via golang-nuts
By the way - I definitely don't feel strongly about this, and I am just guessing that it's more likely to support new operators for existing types than it is to create new built-in types. I think bitsN types are fine, although again I don't know if I'd personally ever use them. But I am enjoyin

[go-nuts] SFTPGo 2.6.0 Released

2024-05-15 Thread Nicola Murino
Hi all, I'm pleased to announce SFTPGo 2.6.0! SFTPGo is an event-driven file transfer solution. It support multiple protocols (SFTP, SCP, FTP/S, WebDAV, HTTP/S) and multiple storage backends. Main new features: - Rewritten WebClient and WebAdmin UIs: we hope you find these new user interfaces

Re: [go-nuts] Re: programmatic way to find if application go binary is built with -cover flag ?

2024-05-15 Thread 肖华冬
There is possibly a way to do this by parsing strings in the binary. Because when -cover is enabled, go will insert instrumentation statements into the source code, thus the resulting binary would contain these info.On May 14, 2024, at 17:19, Akash Kumar wrote:I unable to find a flag from corresp

Re: [go-nuts] using runtime cgo.Handle passing struct types

2024-05-15 Thread Ian Lance Taylor
On Tue, May 14, 2024 at 10:37 PM Pavan wrote: > > I need to pass value of struct type, which has C strings and functions to C > function as void* argument. C layer would provide this struct type data back > to go function. Below is the sample program. It panics if the handle used is > returned