Documentation ¶
Index ¶
- func ApplicationBaseDirectory() string
- func ApplicationFileName() string
- func ApplicationFullPath() string
- func ApplicationWriteHeapFile(fileName string)
- func DirectoryCreateDirectory(path string) bool
- func DirectoryDeleteDirectory(path string) bool
- func DirectoryExists(path string) bool
- func EncryptAesDecrypt(data string, aesKey string) ([]byte, error)
- func EncryptAesDecryptData(data []byte, key []byte) ([]byte, error)
- func EncryptAesEncrypt(data []byte, aesKey string) (string, error)
- func EncryptAesEncryptData(data []byte, key []byte) ([]byte, error)
- func EncryptBase64Decode(data string) string
- func EncryptBase64Encode(data string) string
- func EncryptFileMd5(filePath string) string
- func EncryptMd5(data string) string
- func EncryptNewId() string
- func EncryptUrlDecode(data string) string
- func EncryptUrlEncode(data string) string
- func FileCopy(srcPath string, desPath string) bool
- func FileDelete(path string) bool
- func FileExists(path string) bool
- func FileReadAllText(path string) string
- func FileRename(oldPath string, newPath string) bool
- func FileWriteAllText(path string, data string) bool
- func FileZip(desZipPath string, srcFilePath string, passwd string) error
- func FlatMapToStruct(srcDataMap map[string]interface{}, desData interface{}) error
- func FlatStructCopy(srcData interface{}, desData interface{}) error
- func GetGlobalAppDescription() string
- func GetGlobalAppName() string
- func LogError(logContent string)
- func LogInfo(logContent string)
- func LogWarn(logContent string)
- func NetHttpDo(method string, url string, data string, contentType string, authData string) (error, string)
- func NetHttpDownloadFile(url string, filePath string) (error, int64)
- func NetHttpGet(url string) (error, string)
- func NetHttpGetWithAuth(url string, authData string) (error, string)
- func NetHttpPostForm(url string, formData string, authData string) (error, string)
- func NetHttpPostJson(url string, jsonData string, authData string) (error, string)
- func OSName() string
- func OSUserName() string
- func OsAllIPV4() (ipv4s []string)
- func OsHostName() string
- func OsIPV4() string
- func OsProcessNo() string
- func SetGlobalAppInfo(appName string, appDescription string)
- func SetGlobalCheerLogFileMaxAge(maxAge time.Duration)
- func SetGlobalCheerLogger(cheerLog *CheerLog)
- func StdError(logContent string)
- func StdInfo(logContent string)
- func TextGetMapColumn(dataMapList []map[string]interface{}, colName string) []interface{}
- func TextGetString(data []byte, encoding encoding.Encoding) string
- func TextStructFromJson(data interface{}, dataJson string) error
- func TextStructToJson(data interface{}) string
- func TimeGetNow() string
- func TimeGetTime(t time.Time) string
- func TimeStrToTime(timeStr string) time.Time
- func TimeTimestamp() int64
- func TimeUtcTimestamp() int64
- func WebGetContentType(urlPath string) string
- func WebReadStaticFile(urlPath string) (error, []byte)
- type CheerLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationBaseDirectory ¶
func ApplicationBaseDirectory() string
func ApplicationFileName ¶
func ApplicationFileName() string
func ApplicationFullPath ¶
func ApplicationFullPath() string
func ApplicationWriteHeapFile ¶
func ApplicationWriteHeapFile(fileName string)
func DirectoryExists ¶
func EncryptBase64Decode ¶
func EncryptBase64Encode ¶
func EncryptFileMd5 ¶
func EncryptMd5 ¶
func EncryptNewId ¶
func EncryptNewId() string
func EncryptUrlDecode ¶
func EncryptUrlEncode ¶
func FileDelete ¶
func FileExists ¶
func FileReadAllText ¶
func FileRename ¶
func FileWriteAllText ¶
func FlatMapToStruct ¶
func FlatStructCopy ¶
func FlatStructCopy(srcData interface{}, desData interface{}) error
func GetGlobalAppDescription ¶
func GetGlobalAppDescription() string
func GetGlobalAppName ¶
func GetGlobalAppName() string
func NetHttpGet ¶
func NetHttpPostForm ¶
func NetHttpPostJson ¶
func OSUserName ¶
func OSUserName() string
func OsHostName ¶
func OsHostName() string
func OsProcessNo ¶
func OsProcessNo() string
func SetGlobalAppInfo ¶
func SetGlobalCheerLogger ¶
func SetGlobalCheerLogger(cheerLog *CheerLog)
func TextGetMapColumn ¶
func TextStructFromJson ¶
func TextStructToJson ¶
func TextStructToJson(data interface{}) string
func TimeGetNow ¶
func TimeGetNow() string
func TimeGetTime ¶
func TimeStrToTime ¶
func TimeTimestamp ¶
func TimeTimestamp() int64
func TimeUtcTimestamp ¶
func TimeUtcTimestamp() int64
func WebGetContentType ¶
func WebReadStaticFile ¶
Types ¶
type CheerLog ¶
type CheerLog struct {
// contains filtered or unexported fields
}
func NewCheerLogOnFile ¶
func NewCheerLogOnFile() *CheerLog
func (*CheerLog) InitWithLogWriter ¶
func (this *CheerLog) InitWithLogWriter(logWriterForInfo zapcore.WriteSyncer, logWriterForWarn zapcore.WriteSyncer, logWriterForError zapcore.WriteSyncer) error
Click to show internal directories.
Click to hide internal directories.