Skip to content

Instantly share code, notes, and snippets.

@teghnet
Created February 14, 2023 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teghnet/6fa1e335d626dcb2855f400bdd312c10 to your computer and use it in GitHub Desktop.
Save teghnet/6fa1e335d626dcb2855f400bdd312c10 to your computer and use it in GitHub Desktop.
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