labelpool

package
v3.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() *labels.ScratchBuilder

Get returns a labels.ScratchBuilder from the pool, or creates one of if the pool is empty. The returned builder is always in a fresh state.

labels.ScratchBuilder.Overwrite is only valid to use with pooled builders if the all references to the overwritten labels end before the builder is returned to the pool.

func Put

func Put(b *labels.ScratchBuilder)

Put returns a labels.ScratchBuilder back to the pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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