Skip to content

Instantly share code, notes, and snippets.

View relloyd's full-sized avatar

Richard Lloyd relloyd

View GitHub Profile
@mahan
mahan / gist:6256149
Last active January 7, 2021 16:19
Atomic boolean for golang
/* Atomic boolean for golang
A process-atomic boolean that can be used for signaling between goroutines.
Default value = false. (nil structure)
*/
package main
import "sync/atomic"