stack

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutexStack

type MutexStack[T any] struct {
	// contains filtered or unexported fields
}

func NewMutexStack

func NewMutexStack[T any]() *MutexStack[T]

NewMutexStack creates and returns a new instance.

func (*MutexStack[T]) Pop

func (s *MutexStack[T]) Pop() (T, bool)

Pop removes or resets state.

func (*MutexStack[T]) Push

func (s *MutexStack[T]) Push(v T)

Push updates or inserts a value.

Jump to

Keyboard shortcuts

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