six

package
v0.0.0-...-a6853de Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimalShelter

type AnimalShelter interface {
	Enqueue(a interface{})
	DequeueAny() interface{}
	DequeueDog() *Dog
	DequeueCat() *Cat
}

AnimalShelter can enqueue and dequeue arbitrary pets. It can also dequeue a Dog or a Cat specifically.

func New

func New() AnimalShelter

New returns a new AnimalShelter implementation.

type Cat

type Cat struct{ Name string }

Cat has a Name.

type Dog

type Dog struct{ Name string }

Dog also has a Name.

Jump to

Keyboard shortcuts

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