stack

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 0 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 struct {
	// contains filtered or unexported fields
}

Stack a customsize stack

func (*Stack) Empty

func (s *Stack) Empty() bool

Empty the stack is empty or not

func (*Stack) Peek

func (s *Stack) Peek() interface{}

Peek check the top value of the stack

func (*Stack) Pop

func (s *Stack) Pop() interface{}

Pop get the front data of the queue

func (*Stack) Push

func (s *Stack) Push(data interface{})

Push add data to the front of the queue

func (*Stack) Size

func (s *Stack) Size() int

Size return the queue size

Jump to

Keyboard shortcuts

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