python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to start & stop heartbeat per session using context.WithCancel?
I'm implementing currently the Golang client for TypeDB and struggle with their session based heartbeat convention. Usually, you implement heartbeat per client so that's relatively easy, just run a go...
Marvin.Hansen
Votes: 0
Answers: 1
Why is WaitGroup.Wait() hanging when using it with go test?
Here's a simple example of what I mean
package main
import (
"sync"
"testing"
"time"
)
func TestWaitGroup(t *testing.T) {
var wg sync.WaitGroup
quit...
Paul Côté
Votes: 0
Answers: 2
Loop through all files in all folders recursively as fast as possible in GOLANG
I'm facing a problem that even after spending the day on the forums I still can't quite understand and solve.
So here it is, I made a function that loops over all the folders as well as its sub-folder...
LaM0uette
Votes: 0
Answers: 1
Unexpected behaviour of time.Now() in goroutine
As a way of trying to familiarize myself with Go I am trying to build a (completely unreliable) random number generator. The idea is to time 100 GET requests to some url, do something with the results...
g_uint
Votes: 0
Answers: 1