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.
![GitHub - danhab99/idk: A collection of go funcs](https://programming.dev/pictrs/image/760fd685-6754-4445-93b0-cc6919ede48b.png?format=webp&thumbnail=256)
Did I break a taboo by doing this?
You're viewing a single thread.
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
9 comments
Scroll to top