util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(err error)

func MustReturn

func MustReturn[T any](value T, err error) T

Types

type Deque

type Deque[T any] interface {
	IsEmpty() bool
	Poll() T
	Offer(value T) bool
	LastIndex() int
}

func NewCappedDeque

func NewCappedDeque[T any](maxSize, initialSize int) Deque[T]

func NewDeque

func NewDeque[T any](initialSize int) Deque[T]

Jump to

Keyboard shortcuts

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