thing

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2018 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 Map

type Map map[string]Thing

map InstanceIDs to Instance objects

func (Map) Add

func (m Map) Add(t Thing) error

Add an instance to the map. If it's already there, thats' an error.

func (Map) Get

func (m Map) Get(key string) (t Thing, exists bool)

func (Map) Remove

func (m Map) Remove(t Thing) error

Remove an instance from the map. If it doesn't exist in the map, that's an error.

type Thing

type Thing interface {
	Id() string
}

noinspection GoNameStartsWithPackageName

Jump to

Keyboard shortcuts

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