package
0.0.0-20220201112029-24cae8969aad
Repository: https://github.com/young-zy/blog.git
Documentation: pkg.go.dev

# Functions

IntToUintPointer converts an int to a uint pointer.
NewBadRequestError is a shortcut to create a bad request http error.
NewForbiddenError is a shortcut to create a forbidden http error.
NewInternalError keeps the private error to gin and creates an internal server error.
NewInternalServerError is a shortcut to create an internal http server error.
NewNotFoundError is a shortcut to create a not found http error.
NewPager returns a pager.
NewSelfDefinedError creates a SelfDefinedError.
Now returns the pointer type of current time.
SendMail sends a mail.

# Structs

Pager is a struct for paging.
SelfDefinedError is an implementation of HTTPError.

# Interfaces

HTTPError is an interface used to present an http error.