Documentation ¶
Index ¶
- func Exists(path string) bool
- func GetRequestBody(r *http.Request) ([]byte, error)
- func PanicRecover() error
- func PopLine(in []byte) ([]byte, error)
- func ResolveHome(path string) string
- func Respond(w http.ResponseWriter, data interface{}, code int) error
- func UnmarshalRequest(r *http.Request, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRequestBody ¶
GetRequestBody reads request and returns bytes
func PanicRecover ¶
func PanicRecover() error
PanicRecover is handler for panic, wraps panic in error
func Respond ¶
func Respond(w http.ResponseWriter, data interface{}, code int) error
Respond sends HTTP response
func UnmarshalRequest ¶
UnmarshalRequest unmarshal HTTP request to given struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.