Documentation ¶
Index ¶
- Constants
- func ComparePassword(digest string, password string) bool
- func EncryptPassword(password string) (string, error)
- func ErrorNotFound(c *gin.Context, id int64)
- func LogError(c *gin.Context, err error)
- func LogErrorMsg(c *gin.Context, err error, message string)
- func LogInvalidAdmin(c *gin.Context)
- func LogInvalidUser(c *gin.Context)
- func RandomHex(length int) string
- func ToCamel(s string) string
- func Trim(s string, trimType TrimType) string
- func TrimFull(s string) string
- type Date
- type Timestamp
- type TrimType
Constants ¶
View Source
const DefaultMessage = "[Error for gin.Context]"
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
func EncryptPassword ¶
func ErrorNotFound ¶
func LogInvalidAdmin ¶
func LogInvalidUser ¶
Types ¶
type Timestamp ¶
func (Timestamp) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.