stack

package
v0.0.0-...-73e22f4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 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 is a base structure for LIFO

func New

func New() *Stack

Initialzes new Stack

func (*Stack) Peek

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

Peek returns top of a stack without deletion

func (*Stack) Pop

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

Deletes top of a stack and return it

func (*Stack) Push

func (stack *Stack) Push(item interface{})

Pushes a given item into Stack

type StackItem

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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