Versions in this module Expand all Collapse all v0 v0.0.1 Jun 4, 2021 Changes in this version + var Default = &Respond + var DefaultWithLang = func(lang string) *Respond + type Message struct + Errors map[string]map[string]interface{} + Failed string + Lang string + Success string + func (message *Message) LoadConfig() *Message + type Respond struct + func (respond Respond) DeleteFailed() (int, interface{}) + func (respond Respond) DeleteSucceeded() (int, interface{}) + func (respond Respond) Error(statusCode int, errorCode int) (int, interface{}) + func (respond Respond) InsertFailed() (int, interface{}) + func (respond Respond) InsertSucceeded() (int, interface{}) + func (respond Respond) Message() *Message + func (respond Respond) MethodNotAllowed() (int, interface{}) + func (respond Respond) NotFound() (int, interface{}) + func (respond Respond) RequestFieldDuplicated() (int, interface{}) + func (respond Respond) RequestFieldNotfound() (int, interface{}) + func (respond Respond) RespondWithMessage(message interface{}) (int, interface{}) + func (respond Respond) RespondWithResult(result interface{}) (int, interface{}) + func (respond Respond) SetErrorCode(code int) Respond + func (respond Respond) SetStatusCode(code int) Respond + func (respond Respond) SetStatusText(text string) Respond + func (respond Respond) Succeed(data interface{}) (int, interface{}) + func (respond Respond) UpdateFailed() (int, interface{}) + func (respond Respond) UpdateSucceeded() (int, interface{}) + func (respond Respond) ValidationErrors(errors interface{}) (int, interface{}) + func (respond Respond) WrongParameters() (int, interface{})