Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
connicpu
61 days ago
|
parent
|
context
|
favorite
| on:
Go is still not good
You do what the compiler has to do under the hood: at the top of the function create a list of open files, and have a defer statement that loops over the list closing all of the files. It's really not a complicated construct.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: