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
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
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
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