utils

package
v0.0.0-...-a4145b4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBuffer

func AddBuffer(amt *big.Int, factor int64) *big.Int

Types

type Stack

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

func NewStack

func NewStack[T any]() *Stack[T]

func (*Stack[T]) IsEmpty

func (stack *Stack[T]) IsEmpty() bool

func (*Stack[T]) Pop

func (stack *Stack[T]) Pop() (T, bool)

func (*Stack[T]) Push

func (stack *Stack[T]) Push(key T)

func (*Stack[T]) Top

func (stack *Stack[T]) Top() (T, bool)

Jump to

Keyboard shortcuts

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