]> Cypherpunks repositories - gostls13.git/commit
runtime: Added usage example for the runtime.AddCleanup() function.
authorAlexandr Primak <primak.aa@gmail.com>
Sat, 15 Feb 2025 13:52:57 +0000 (16:52 +0300)
committerGopher Robot <gobot@golang.org>
Wed, 26 Feb 2025 16:54:51 +0000 (08:54 -0800)
commit4c75671871af56fa68076ee3741780e52726ec82
treee88a87968939d536e627ee79c8abdbee86d018c5
parent011da163f475b38ad70c9c652df6dc8dc2ba5168
runtime: Added usage example for the runtime.AddCleanup() function.

The existing description of the function lacks usage examples, which makes it difficult to understand, so I added one.

There is no open issue about this, since the implementation seems trivial.

Change-Id: I96b29f0b21d1c7fda04128239633c8a2fc36fef2
Reviewed-on: https://go-review.googlesource.com/c/go/+/649995
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/example_test.go