Y
Hacker News
new
|
ask
|
show
|
jobs
by
pjmlp
1429 days ago
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.
1 comments
yakubin
1429 days 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.
link
I'd guess with generics we can expect a generic "Must" to replace them.