Documentation ¶
Index ¶
- Variables
- func Atoi(value string) int
- func ConvertUnixToTime(unixInt string) (time.Time, error)
- func InitVaildator()
- func InitVariables()
- func IsValidImageType(magic []byte) (bool, string, error)
- func IsZeroValue(value reflect.Value) bool
- func PrintAppBanner()
- func SimpleResponse(c *gin.Context, statusCode int, message string, data interface{})
- type LangLocal
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CookieRefreshTokenExpires int CookieAccessTokenExpires int BaseURL string GiteaORGName string )
View Source
var LangList = []string{"en", "es", "zh-tw", "zh-cn"}
Functions ¶
func InitVaildator ¶
func InitVaildator()
func IsValidImageType ¶
Check if the uploaded file is an image using Magic Bytes
func IsZeroValue ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.