What is the idiomatic way to use errors.Is with a custom struct error? type MyErr struct { fields.... } func (e *MyErr) Error() string { return fmt.Sprintf("failed with ...
I have this piece of code: func (n *Connections) CreateConnection(ctx context.Context, nodeID uuid.UUID, address string) (*grpc.ClientConn, error) { ctxTimeout, cancel := ...
I have a public method that runs a goroutine, and in a normal flow I don't need to wait for it to finish, however, in a test I'd like to wait. What would be a sensible way to ...
I am reading: https://www.jtolio.com/2016/03/go-channels-are-bad-and-you-should-feel-bad/ and I can't really understand it. In the first example, why does the mutex solve the...
I have this call requestCaller.MethodByName("Send").Call([]reflect.Value{})[0], how can I check the value returned is not a nil pointer?
is using a worker pool in go makes sense? or one should just go func() whenever needed?
I'm looking at https://github.com/etherealmachine/ttyecho/blob/master/ttyecho.go#L16 why is unsafe needed in this case?
i know very little about it, but can't you just run go directly now with WASM?
isn't the goroutine scheduler taking care of this?
yeah i saw this, is this a good example?