Lesson 13 of 60
GoConcurrency Primer: Goroutines
20 minutes
Course progress22%
Goroutines
This lesson explains the main concept clearly with beginner-friendly examples and background so you can learn why the code works.
A goroutine is a lightweight thread managed by the Go runtime.
func say(msg string) {
for i := 0; i < ; i++ {
fmt.Println(msg)
}
}
{
say()
say()
}