Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pjmlp
3y ago
0 comments
Share
While it won't win the hearts of Gophers, I would use a utility function that panics if error, at least on throw away code.
0 comments
default
newest
oldest
yakubin
3y ago
There are some instances of it in the stdlib, e.g. <
https://pkg.go.dev/html/template@go1.18.4#Must
>
I'd guess with generics we can expect a generic "Must" to replace them.
j
/
k
navigate · click thread line to collapse