Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vhost-
on July 12, 2015
|
parent
|
context
|
favorite
| on:
Singleton Pattern in Go
How do handle configuration? Your program starts up, generates some settings, then those need to be shared across all threads to avoid incurring the cost of regenerating during every call to a function.
ajankovic
on July 12, 2015
[–]
But in that case config values are to be treated as constants (read only). You don't have concurrency issues for code that doesn't change.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: