utils

package
v0.0.0-...-17b3017 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Strip

func Strip(s_ string, chars_ string) string

func TraceMemStats

func TraceMemStats()

Types

type Queue

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

func NewQueue

func NewQueue() *Queue

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

func (*Queue) Pop

func (q *Queue) Pop() (x interface{}, err error)

func (*Queue) Push

func (q *Queue) Push(x interface{})

func (*Queue) Size

func (q *Queue) Size() int

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) IsEmpty

func (s *Stack) IsEmpty() bool

func (*Stack) Pop

func (s *Stack) Pop() (x interface{}, err error)

func (*Stack) Push

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

func (*Stack) Reset

func (s *Stack) Reset()

func (*Stack) Size

func (s *Stack) Size() int

func (*Stack) Top

func (s *Stack) Top() (x interface{})

Jump to

Keyboard shortcuts

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