Top "Goroutine" questions

A goroutine is a lightweight thread of execution that is managed by the Go language runtime.

How best do I keep a long running Go program, running?

I've a long running server written in Go. Main fires off several goroutines where the logic of the program executes. …

go daemon goroutine
Is a Go goroutine a coroutine?

In the Google I/O 2012 presentation Go Concurrency Patterns, Rob Pike mentions that several goroutines can live in one thread. …

multithreading go goroutine
anonymous struct and empty struct

http://play.golang.org/p/vhaKi5uVmm package main import "fmt" var battle = make(chan string) func warrior(name string, …

concurrency go channel goroutine
idiomatic goroutine termination and error handling

I have a simple concurrency use case in go, and it's driving me nuts I can't figure out an elegant …

go channel goroutine
How would you define a pool of goroutines to be executed at once?

TL;DR: Please just go to the last part and tell me how you would solve this problem. I've begun …

multithreading go goroutine
How to broadcast message using channel

I am new to go and I am trying to create a simple chat server where clients can broadcast messages …

go concurrency channel goroutine
How to use a goroutine pool

I want to use Go for downloading stock price spreadsheets from Yahoo finance. I'll be making an http request for …

go threadpool goroutine
Context timeout implementation on every request using golang

I am trying to handle a context timeout for every request. We have the following server structures: Flow overview: Go …

go httprequest settimeout goroutine
Always have x number of goroutines running at any time

I see lots of tutorials and examples on how to make Go wait for x number of goroutines to finish, …

go goroutine
count / display the number of active goroutines

I have a queue and a function that does both dequeueing and enqueueing. I want to make sure that the …

concurrency go goroutine