stringstack

package
v0.0.0-...-b1f961f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 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 StringStack

type StringStack struct {
	sync.Mutex
	// contains filtered or unexported fields
}

StringStack is a basic LIFO "stack" for storing strings.

func New

func New() *StringStack

New creates a new instance of StringStack

func (*StringStack) Pop

func (s *StringStack) Pop() (string, error)

Pop pops a string from the stack.

func (*StringStack) Push

func (s *StringStack) Push(v string)

Push pushes a string onto the stack.

Jump to

Keyboard shortcuts

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