TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Life as a Go Developer on Windows

3 pointsby misonicabout 1 month ago

1 comment

cratermoonabout 1 month ago
&quot;On windows, you need to always, always call Close() on file handles before attempting to delete them. This is easy enough to do when the deletion happens near the access like above. But when you&#x27;re writing a program that touches many thousands of files in a long-lived process, it&#x27;s very easy to accidentally lose track of one or more of them.&quot;<p>Isn&#x27;t that what `defer` is for?
评论 #43590280 未加载