adt

package module
v0.0.0-...-982e681 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 4 Imported by: 4

README

Package adt

Abstract Data Types (like Stack and UUID generation)

Installation

go get -u github.com/amortaza/go-adt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUUID

func NewUUID() string

Types

type CallbacksById

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

func NewCallbacksById

func NewCallbacksById() *CallbacksById

func (*CallbacksById) Add

func (c *CallbacksById) Add(id string, cb func(interface{}))

func (*CallbacksById) CallAll

func (c *CallbacksById) CallAll(id string, param interface{})

func (*CallbacksById) ClearAll

func (c *CallbacksById) ClearAll()

func (*CallbacksById) ClearId

func (c *CallbacksById) ClearId(id string)

func (*CallbacksById) HasId

func (c *CallbacksById) HasId(id string) bool

type Stack

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

func (*Stack) Pop

func (s *Stack) Pop() (value interface{})

func (*Stack) Push

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

func (*Stack) Top

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

Jump to

Keyboard shortcuts

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