db

package
v0.0.0-...-d1122d2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 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 Pokemon

type Pokemon struct {
	Name string `db:"name"`
	Type string `db:"type"`
}

func Find

func Find(id int) (*Pokemon, error)

Find returns: details for the given pokemon id or sql.ErrNoRows if there is no register of the given pokemon id in your pokedex error for id < 1

Jump to

Keyboard shortcuts

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