Documentation ¶
Index ¶
- Variables
- func ConvertTimeToThaiFullDateFormat(t time.Time) string
- func ConvertTimeToThaiFullDateTimeFormat(t time.Time) string
- func ConvertTimeToThaiFullTimeFormat(t time.Time) string
- func ConvertTimeToThaiShortDateFormat(t time.Time) string
- func ConvertTimeToThaiShortTimeFormat(t time.Time) string
- func HttpBlob(ctx *fiber.Ctx, blob []byte) error
- func HttpBlobWithCode(ctx *fiber.Ctx, blob []byte, code int) error
- func HttpCreated(ctx *fiber.Ctx, data interface{}) error
- func HttpErrBadRequest(ctx *fiber.Ctx) error
- func HttpErrConflict(ctx *fiber.Ctx) error
- func HttpErrForbidden(ctx *fiber.Ctx) error
- func HttpErrNotFound(ctx *fiber.Ctx) error
- func HttpErrServerError(ctx *fiber.Ctx, err error, msg interface{}) error
- func HttpErrUnAuthorize(ctx *fiber.Ctx, err error) error
- func HttpInvalidRequest(ctx *fiber.Ctx, code int, err error, msg interface{}) error
- func HttpNoContent(ctx *fiber.Ctx) error
- func HttpOk(ctx *fiber.Ctx, data interface{}) error
- func HttpOkWithTotal(ctx *fiber.Ctx, data interface{}, total int) error
- func HttpRedirect(ctx *fiber.Ctx, url string) error
- func HttpRedirectWithCode(ctx *fiber.Ctx, url string, code int) error
- func HttpResponse(ctx *fiber.Ctx, code int, result server.Result) error
- func HttpServerError(ctx *fiber.Ctx, code int, err error, msg interface{}) error
- func HttpServiceUnavailableError(ctx *fiber.Ctx, err error, msg interface{}) error
- func HttpTooLargeBody(ctx *fiber.Ctx) error
- func HttpTooMany(ctx *fiber.Ctx) error
- type Date
- type Today
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ThaiWeekDay = map[string]interface{}{ "Sunday": "อาทิตย์", "Monday": "จันทร์", "Tuesday": "อังคาร", "Wednesday": "พุธ", "Thursday": "พฤหัสบดี", "Friday": "ศุกร์", "Saturday": "เสาร์", } ThaiShortWeekDay = map[string]interface{}{ "Sunday": "อา", "Monday": "จ", "Tuesday": "อ", "Wednesday": "พ", "Thursday": "พฤ", "Friday": "ศ", "Saturday": "ส", } ThaiMonth = map[string]interface{}{ "January": "มกราคม", "February": "กุมภาพันธ์", "March": "มีนาคม", "April": "เมษายน", "May": "พฤษภาคม", "June": "มิถุนายน", "July": "กรกฎาคม", "August": "สิงหาคม", "September": "กันยายน", "October": "ตุลาคม", "November": "พฤศจิกายน", "December": "ธันวาคม", } ThaiShortMonth = map[string]interface{}{ "January": "ม.ค.", "February": "ก.พ.", "March": "มี.ค.", "April": "เม.ย.", "May": "พ.ค.", "June": "มิ.ค.", "July": "ก.ค.", "August": "ส.ค.", "September": "ก.ย.", "October": "ต.ค.", "November": "พ.ย.", "December": "ธ.ค.", } )
Functions ¶
func HttpBlobWithCode ¶
func HttpErrServerError ¶
HttpErrServerError - 500
func HttpErrUnAuthorize ¶
HttpErrUnAuthorize - 401
func HttpInvalidRequest ¶
func HttpOkWithTotal ¶
HttpOkWithTotal - 200
func HttpRedirect ¶
func HttpRedirectWithCode ¶
func HttpServerError ¶
func HttpServiceUnavailableError ¶
HttpServiceUnavailableError - 503
func HttpTooLargeBody ¶ added in v2.0.9
func HttpTooLargeBody(ctx *fiber.Ctx) error
HttpTooLargeBody - 413
Types ¶
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
func (*Date) PreviousDay ¶
func (*Date) ToDateTime ¶
type Today ¶ added in v2.0.9
type Today struct {
// contains filtered or unexported fields
}
func NewTodayWithTime ¶ added in v2.0.9
func (*Today) PreviousDay ¶ added in v2.0.9
func (*Today) ToDateTime ¶ added in v2.0.9
Click to show internal directories.
Click to hide internal directories.