Login
From:
paul.totterman.name
(Uncensored)
subscribe
Generic "must" helper for Go | Paul's page
https://paul.totterman.name/posts/golang-generic-must/
links
backlinks
Roast topics
Find topics
Find it!
Go error handling can be a bit verbose. There are a lot of places where errors are unlikely or where they are so critical that a panic is preferred. Because of this there are lots of Must* -helpers in various packages. E.g. regexp.MustCompile.