cats

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLI

func CLI(args []string) int

func Find

func Find(slice []string, val string) (int, bool)

Find takes a slice and looks for an element in it. If found it will return it's key, otherwise it will return -1 and a bool of false. Courtesy of Edd Turtle (https://golangcode.com/check-if-element-exists-in-slice/)

Types

type Breed

type Breed struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type BreedInfo added in v0.1.2

type BreedInfo struct {
}

type Cat

type Cat struct {
	Id     string  `json:"id"`
	Url    string  `json:"url"`
	Breeds []Breed `json:"breeds"`
}

Jump to

Keyboard shortcuts

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