Skip to content

Instantly share code, notes, and snippets.

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