Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
slashdev
on July 12, 2015
|
parent
|
context
|
favorite
| on:
Singleton Pattern in Go
You would have to use sync.Atomic for all reads and writes. If you just use normal reads and writes it's in violation of the Go language memory model. It might work for now or it might start a nuclear war. You never know.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: