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 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址