models

package
v0.0.0-...-baf0b24 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBook

func DeleteBook(r *http.Request) error

Types

type Book

type Book struct {
	Isbn   string
	Title  string
	Author string
	Price  float32
}

func AllBooks

func AllBooks() ([]Book, error)

func OneBook

func OneBook(r *http.Request) (Book, error)

func PutBook

func PutBook(r *http.Request) (Book, error)

func UpdateBook

func UpdateBook(r *http.Request) (Book, error)

Jump to

Keyboard shortcuts

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