Skip to content

Instantly share code, notes, and snippets.

Created February 14, 2023 22:15
What would you like to do?
func must[t any](c t, err error) t {
if err != nil {
return c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment