stack

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: MIT Imports: 2 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
}

func New

func New() *ItemStack

创建栈

func (*ItemStack) GetLen

func (s *ItemStack) GetLen() int

获取栈的长度

func (*ItemStack) Pop

func (s *ItemStack) Pop() (Item, error)

出栈

func (*ItemStack) Push

func (s *ItemStack) Push(t Item) Item

入栈

Jump to

Keyboard shortcuts

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