Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableCors ¶
EnableCors - enable cors at application with base at configurate passed by params
func EnableLogs ¶
EnableLogs - add logs at all request
func RespondWithJson ¶
func RespondWithJson(w http.ResponseWriter, code int, payload interface{})
RespondWithJson - response formated with json
func Validate ¶
func Validate(w http.ResponseWriter, object interface{}) bool
Validate - convert/get payload by json
Types ¶
type DefaultResponse ¶
DefaultResponse - struct default to simple response
Click to show internal directories.
Click to hide internal directories.