# Functions
No description provided by the author
ContainsString Contains find element slice contains the element or not.
CopyFile copy a file from source to destination path.
No description provided by the author
No description provided by the author
GetConfig get config by viper.
No description provided by the author
GetFormatTimeString set time to fomrat string example: - input: (time.Now(),"YYYY-MM-DD hh:mm:ss") - output: "2019-10-17 15:30:46".
GetMacAddress get mac address of this device.
GetMimeType get mimetype of file from *gin.Context.ContentType() example format of contentType: Content-Type:[text/plain]] multipart/form-data.
GetRandomString 取得指定長度的隨機字串,長度必需大於0小於等於100,否則會回傳空字串 "".
GetRandomTempDirName 取得指定長度且不重複的暫存資料夾路徑.
HasString find the same string in array.
IsImage check filename is image.
MatchDatePattern check date string is match pattern "YYYY-MM-DD",ex:"2015-11-26".
NewError return Error defined by code.
PadLeft add pad string to the left of main string.
No description provided by the author
No description provided by the author
RocToADYear ROC YYYMMDD(or YYMMDD) format to AD YYYY-MM-DD format.
SetRequestBodyParams turn c.Request.Body ReaderCloser to params map[string]interface{}.
SQLTimeFormatToString turn time to sql format time in string.
SQLTimeStringToTime turn sql fromat time string to time type.
TimeStamptoTime convert timestamp string to time.
ToRocDate change date to roc year format, ex: 1951-12-11 -> 401211.
No description provided by the author
# Constants
TimeLayout used to time.parse.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Config parameters name mapping to config.json must be capitalize.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author