Skip to content

Glossary: Software Design Patterns in Go

Goroutine

Also written: goroutines

A function running concurrently with others in Go. They matter for singletons because `sync.Once` keeps a singleton safe even when several goroutines ask for it at once.

Where the book teaches it

Related terms

sync.Once