Documentation ¶
Index ¶
Constants ¶
View Source
const ( MessageUserCreated = "user successfully registered" MessageUserWithThisEmailExists = "user with this email exists" MessageUserEmailOrPasswordIsInvalid = "email or password is invalid" MessageInternalServerError = "there is a problem on our side" MessageSuccessfulLogin = "welcome" MessageNewPostCreated = "new post created" )
Variables ¶
View Source
var Validate = validator.New()
Functions ¶
func FormatResponse ¶
func FormatResponse(resData ResponseData) finalResponse
Types ¶
type ResponseData ¶
type ValidationError ¶
func (*ValidationError) String ¶
func (ve *ValidationError) String() string
Click to show internal directories.
Click to hide internal directories.