books

package
v0.0.0-...-6ea799e Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(w http.ResponseWriter, r *http.Request)

func CreateProcess

func CreateProcess(w http.ResponseWriter, r *http.Request)

func DeleteBook

func DeleteBook(r *http.Request) error

func DeleteProcess

func DeleteProcess(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func Show

func Show(w http.ResponseWriter, r *http.Request)

func ShowJSON

func ShowJSON(w http.ResponseWriter, r *http.Request)

func Update

func Update(w http.ResponseWriter, r *http.Request)

func UpdateProcess

func UpdateProcess(w http.ResponseWriter, r *http.Request)

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