cheerlib

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Application_BaseDirectory

func Application_BaseDirectory() string

func Application_FileName

func Application_FileName() string

func Application_FullPath

func Application_FullPath() string

func Directory_CreateDirectory

func Directory_CreateDirectory(path string) bool

func Directory_DeleteDirectory

func Directory_DeleteDirectory(path string) bool

func Directory_Exists

func Directory_Exists(path string) bool

func Encrypt_Base64Decode

func Encrypt_Base64Decode(data string) string

func Encrypt_Base64Encode

func Encrypt_Base64Encode(data string) string

func Encrypt_FileMd5

func Encrypt_FileMd5(filePath string) string

func Encrypt_Md5

func Encrypt_Md5(data string) string

func Encrypt_NewId

func Encrypt_NewId() string

func Encrypt_UrlDecode

func Encrypt_UrlDecode(data string) string

func Encrypt_UrlEncode

func Encrypt_UrlEncode(data string) string

func File_Copy

func File_Copy(srcPath string, desPath string) bool

func File_Delete

func File_Delete(path string) bool

func File_Exists

func File_Exists(path string) bool

func File_ReadAllText

func File_ReadAllText(path string) string

func File_Rename

func File_Rename(oldPath string, newPath string) bool

func File_WriteAllText

func File_WriteAllText(path string, data string) bool

func LogError

func LogError(logContent string)

func LogErrorSkipStack

func LogErrorSkipStack(logContent string, skipStack int)

func LogInfo

func LogInfo(logContent string)

func LogInfoSkipStack

func LogInfoSkipStack(logContent string, skipStack int)

func LogTag

func LogTag(logContent string)

func Net_HttpDo

func Net_HttpDo(method string, url string, data string, contentType string) (error, string)

func Net_HttpDownloadFile

func Net_HttpDownloadFile(url string, filePath string) (error, int64)

func Net_HttpGet

func Net_HttpGet(url string) (error, string)

func Net_HttpPostForm

func Net_HttpPostForm(url string, formData string) (error, string)

func Net_HttpPostJson

func Net_HttpPostJson(url string, jsonData string) (error, string)

func Os_FormatArgs

func Os_FormatArgs(runArg string) []string

func Os_FormatDeviceSize

func Os_FormatDeviceSize(data uint64, flagGiga bool) string

func Os_IsWindows

func Os_IsWindows() bool

func Process_ExcuteCommand

func Process_ExcuteCommand(timeout int, command string, args ...string) ([]byte, error)

func Process_GetNewStartProcAttr

func Process_GetNewStartProcAttr() syscall.SysProcAttr

func Process_Kill

func Process_Kill(pid int)

func Process_KillByName

func Process_KillByName(processName string)

func Process_KillForce

func Process_KillForce(pid int)

func Process_Start

func Process_Start(command string, args ...string) (error, int)

func Process_StartNew

func Process_StartNew(command string, args ...string) error

func Text_GetString

func Text_GetString(data []byte, encoding encoding.Encoding) string

func Text_StructFromJson

func Text_StructFromJson(data interface{}, dataJson string) error

func Text_StructToJson

func Text_StructToJson(data interface{}) string

func Time_GetNow

func Time_GetNow() string

func Time_GetTime

func Time_GetTime(t time.Time) string

func Time_StrToTime

func Time_StrToTime(timeStr string) time.Time

func Time_Timestamp

func Time_Timestamp() int64

func Time_UtcTimestamp

func Time_UtcTimestamp() int64

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func CreateLog

func CreateLog() *Log

func (*Log) CheckLog

func (this *Log) CheckLog()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL