stack

package
v0.0.0-...-9e5668c Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFreeStack

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

func NewLockFreeStack

func NewLockFreeStack() *LockFreeStack

func (*LockFreeStack) Pop

func (s *LockFreeStack) Pop() interface{}

func (*LockFreeStack) Push

func (s *LockFreeStack) Push(v interface{})

type MutexStack

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

func NewMutexStack

func NewMutexStack() *MutexStack

func (*MutexStack) Pop

func (s *MutexStack) Pop() interface{}

func (*MutexStack) Push

func (s *MutexStack) Push(v interface{})

type StackInterface

type StackInterface interface {
	Push(interface{})
	Pop() interface{}
}

Jump to

Keyboard shortcuts

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