Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
exch
on Aug 1, 2013
|
parent
|
context
|
favorite
| on:
Twelve Go Best Practices
I'll add that the reason for using `struct{}` over `bool`, is that an empty struct occupies 0 bytes, whereas a boolean occupies 1.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: