Help us shape the future of Go! Take the 2026 Go Developer Survey

cleanup

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2026 License: GPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUnsafe

func AddUnsafe(cleanup func())

AddUnsafe must be called only in init {} called in STW, must not allocate or hold a lock

Types

type Cleaner

type Cleaner struct {
	// contains filtered or unexported fields
}

func Add

func Add(cleanup func()) *Cleaner

func (*Cleaner) Close

func (c *Cleaner) Close()

type Object

type Object struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL