Documentation ¶
Index ¶
- func GetPagination(r *http.Request) (limit, offset int, err error)
- func GetUrlPathInt(r *http.Request, key string) (int, error)
- func GetUrlPathInt64(r *http.Request, key string) (int64, error)
- func GetUrlPathString(r *http.Request, key string) string
- func GetUrlQueryInt(r *http.Request, key string) (int, error)
- func GetUrlQueryInt64(r *http.Request, key string) (int64, error)
- func GetUrlQueryString(r *http.Request, key string) string
- func MarshalError(w http.ResponseWriter, code int, err error)
- func MarshalPayload(w http.ResponseWriter, code int, payload interface{})
- func SaveUploadedFile(file *multipart.FileHeader, dst string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalError ¶
func MarshalError(w http.ResponseWriter, code int, err error)
func MarshalPayload ¶
func MarshalPayload(w http.ResponseWriter, code int, payload interface{})
func SaveUploadedFile ¶
func SaveUploadedFile(file *multipart.FileHeader, dst string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.