Documentation ¶
Index ¶
- func BookResp(book *types.Book) *types.BookResponse
- func ConvertAllToTitle(book *types.BookRequest) *types.BookRequest
- func CustomHTTPHandleFunc(f types.CustomHandleFunc) func(http.ResponseWriter, *http.Request)
- func GetQueryValTitle(r *http.Request, key string) string
- func NewBook(book *types.BookRequest) *types.Book
- func ScanBookMySQL(rows *sql.Rows) (*types.Book, error)
- func ScanBookPostgres(rows *sql.Rows) (*types.Book, error)
- func WriteJSON(w http.ResponseWriter, status int, v any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAllToTitle ¶
func ConvertAllToTitle(book *types.BookRequest) *types.BookRequest
func CustomHTTPHandleFunc ¶
func CustomHTTPHandleFunc(f types.CustomHandleFunc) func(http.ResponseWriter, *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.