stack

package
v0.0.0-...-217dc0b Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 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 struct {
	// contains filtered or unexported fields
}

Stack a simple stack

func NewStack

func NewStack() *Stack

NewStack get a new instance of a Stack struct

func (*Stack) Empty

func (s *Stack) Empty() bool

Empty is stack empty

func (*Stack) Front

func (s *Stack) Front() (interface{}, error)

Front get front item in stack if it is a string

func (*Stack) Pop

func (s *Stack) Pop() error

Pop from stack

func (*Stack) Push

func (s *Stack) Push(value string)

Push to the stack

func (*Stack) Size

func (s *Stack) Size() int

Size get size of stack

Jump to

Keyboard shortcuts

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