web

package
v0.0.0-...-3393515 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPagination

func GetPagination(r *http.Request) (limit, offset int, err error)

func GetUrlPathInt

func GetUrlPathInt(r *http.Request, key string) (int, error)

func GetUrlPathInt64

func GetUrlPathInt64(r *http.Request, key string) (int64, error)

func GetUrlPathString

func GetUrlPathString(r *http.Request, key string) string

func GetUrlQueryInt

func GetUrlQueryInt(r *http.Request, key string) (int, error)

func GetUrlQueryInt64

func GetUrlQueryInt64(r *http.Request, key string) (int64, error)

func GetUrlQueryString

func GetUrlQueryString(r *http.Request, key string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL