Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { gorm.Model Name string `gorm:""json:"name"` Author string `json:"author"` Publication string `json:"publication"` }
func DeleteBookById ¶
func GetAllBooks ¶
func GetAllBooks() []Book
func (*Book) CreateBook ¶
funcs with receivers are like functions of struct itself to manipulate the struct obj
Click to show internal directories.
Click to hide internal directories.