I kinda wish there was a better way to do if err != nil in go
I kinda wish there was a better way to do if err != nil in go
github.com GitHub - danhab99/idk: A collection of go funcs
A collection of go funcs. Contribute to danhab99/idk development by creating an account on GitHub.
Did I break a taboo by doing this?
You're viewing a single thread.
View all comments
9
comments
I would rename Check to Must which there is at least some precedent for.
3 0 ReplyOh yeah and it's also less to type. Good idea!
Edit: here's the change https://github.com/danhab99/idk/blob/main/idk.go#L13
1 0 Reply
You've viewed 9 comments.
Scroll to top