runtime: add an example for AddCleanup #72795
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
Documentation
Issues describing a change to documentation.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The runtime.AddCleanup functionality would benefit from having an example. @streamdp added an example in CL 649995. We should backport that example to go1.24.
The text was updated successfully, but these errors were encountered: