Viewing profile — casualsuperman2
casualsuperman2
HN member- Joined
- Tue, Feb 07, 2012, 6:19 PM UTC
- HN karma
- 7
- Public activity
- 4 items
- HN profile
- View on Hacker News ↗
About casualsuperman2
No profile information was provided.
Recent public activity
-
comment
Comment #3724151
The current weekly release has (and Go v1 will have) runtime.NumCPU() so you can do runtime.GOMAXPROCS(runtime.NumCPU())
-
comment
Comment #3686427
And then in the code for handling the error, you can do switch err.(type) { case db.IOError: // Database exception here case io.FileNotFoundError: // File exception default: // Pas…
-
comment
Comment #3681874
In Go, the accepted way to report errors is to take advantage of multiple returns, such as: result, err := somePotentiallyFailingFunction() if err != nil { // Try to recover here .…
-
comment
Comment #3663064
12. I was coding JavaScript for ProBoards. I shudder just thinking about it.