stack

package
v0.0.0-...-2eef10d Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item interface {
}

type ItemStack

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

ItemStack the stack of items

func (*ItemStack) New

func (s *ItemStack) New() *ItemStack

New Create a new ItemStack

func (*ItemStack) Pop

func (s *ItemStack) Pop() *Item

Pop removes an Item from the top of the stack

func (*ItemStack) Push

func (s *ItemStack) Push(t Item)

Push adds an Item to the top of the stack

Jump to

Keyboard shortcuts

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