[go-nuts] Re: Building Go 1.21 for openbsd/386

2023-02-28 Thread 'drc...@google.com' via golang-nuts
Try also GOMAXPROCS=1 ? At some point not too long ago we made that dial down the concurrency in the compiler (before, it would do concurrent builds/compiles anyway) and that should reduce the maximum footprint. On Wednesday, February 22, 2023 at 1:42:56 PM UTC-5 Jan Mercl wrote: > The subject

Re: [go-nuts] Issue implementing interface method that returns another interface

2023-02-28 Thread 'Axel Wagner' via golang-nuts
You are running into this: https://go.dev/doc/faq#covariant_types > How could I do that? You probably have to write a wrapper. Or change the concrete type to return an interface. Or test using the concrete type, instead of using mocks. On Tue, Feb 28, 2023 at 6:08 PM Rick Schubert wrote: > I a

[go-nuts] Issue implementing interface method that returns another interface

2023-02-28 Thread Rick Schubert
I am having a question about how to implement interfaces correctly in Go when it comes to third-party packages that use chained methods. I have compiled an example project below for you so that you can understand the problem. package main import ( myAPI "github.com/hashicorp/vault/api" ) var

Re: [go-nuts] Re: [ANN] Gomail v2: sending emails faster

2023-02-28 Thread Tushar Desai
Hi, I set a timeout of 20 sec for the Dialer, but the DialAndSend continued beyond the timeout and sent email after 27sec. code: dialer = gomail.NewDialer("smtp.mailtrap.io", 587, u, p) dialer.Timeout = 20*time.Second start := time.Now() if err = dialer.DialAndSend(m); err != nil { err = fm