Skip to content

Instantly share code, notes, and snippets.

@tychoish
Created March 21, 2022 19:55
Show Gist options
  • Save tychoish/165aeb4b1cb97f2077306667b32d14ef to your computer and use it in GitHub Desktop.
Save tychoish/165aeb4b1cb97f2077306667b32d14ef to your computer and use it in GitHub Desktop.
The Very Mature Code I Just Wrote
func TestCleanupSUCKS(t *testing.T) {
t.Cleanup(func() { fmt.Println("cleanup") })
defer func() { fmt.Println("defer") }()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment