Versions in this module Expand all Collapse all v2 v2.3.3 Mar 12, 2021 Changes in this version + const DateTimeFormat + var ErrorCode = errorCode + var LOC = time.LoadLocation("Local") + func AvoidXSS(theHTML string) string + func DeepFields(ifaceType reflect.Type) []reflect.StructField + func GetFileMsg(file *multipart.FileHeader) (string, []byte, error) + func GetIntFromEnv(key string, v int) int + func GetInterfaceType(value interface{}) string + func GetStringFromEnv(key string, v string) string + func GetTodayTime() time.Time + func GetTodayYM(sep string) string + func GetTodayYMD(sep string) string + func GetTomorrowYMD(sep string) string + func GetYesterdayTime() time.Time + func GetYesterdayYMD(sep string) string + func GormBatchInsert(db *gorm.DB, values interface{}, validColList []string, ...) error + func Interface2String(value interface{}) string + func LuosimaoVerify(reqURL, apiKey, response string) error + func Paginator(page, prepage int, nums int64) map[string]interface + func RelativeURLToAbsoluteURL(curURL string, baseURL string) (string, error) + func SaveFile(filePath string, content []byte) error + func SendErrJSON(msg string, args ...interface{}) + func SetStructByJSON(obj interface{}, mapData map[string]interface{}) error + func StrToIntMonth(month string) int + func String2Interface(value string, vtype string) (interface{}, error) + func StructCopy(DstStructPtr interface{}, SrcStructPtr interface{}) + func VarsOption(vars map[string]interface{}) client.Option + type JSON []byte + func (j *JSON) Scan(value interface{}) error + func (j JSON) Equals(j1 JSON) bool + func (j JSON) IsNull() bool + func (j JSON) Value() (driver.Value, error) + func (m *JSON) UnmarshalJSON(data []byte) error + func (m JSON) MarshalJSON() ([]byte, error)