util

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

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

func NewStack

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

func (*Stack[T]) Clear

func (v *Stack[T]) Clear()

func (*Stack[T]) Empty

func (v *Stack[T]) Empty() []T

func (*Stack[T]) Index

func (v *Stack[T]) Index(n int) T

func (*Stack[T]) Join added in v0.0.11

func (v *Stack[T]) Join(sep string) string

func (*Stack[T]) Pop

func (v *Stack[T]) Pop() T

func (*Stack[T]) Push

func (v *Stack[T]) Push(t T)

func (*Stack[T]) Size

func (v *Stack[T]) Size() int

func (*Stack[T]) String

func (v *Stack[T]) String() string

func (*Stack[T]) Value

func (v *Stack[T]) Value() T

Jump to

Keyboard shortcuts

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