core

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinStrings

func JoinStrings(strs ...string) string

JoinStrings will combine a variadic list of strings into a single string

func UniqueID

func UniqueID() string

UniqueID generates a unique id as a string from the unix time stamp and a random 64 bit integer.

Types

type ArrayUtil

type ArrayUtil struct{}

ArrayUtil generic functions

func (*ArrayUtil) Contains

func (ac *ArrayUtil) Contains(haystack []interface{}, needle interface{}) bool

Contains function for ArrayUtil to generically see if the "needle" is in the "haystack" array. Interface types must be the same.

type Queue

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

Queue is a simple linked list

func (*Queue) CanPop

func (q *Queue) CanPop() bool

CanPop returns whether or not the list is empty

func (*Queue) Pop

func (q *Queue) Pop() interface{}

Pop returns the head element of the linked list

func (*Queue) Push

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

Push pushes an interface item into the linked list

type QueueItem

type QueueItem struct {
	Value interface{}
	// contains filtered or unexported fields
}

QueueItem stores an individual element of the linked list

Jump to

Keyboard shortcuts

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