Documentation ¶
Index ¶
- func ArrayFilter(a []int) (ret []int)
- func ArrayFilterString(a []string) (ret []string)
- func ArrayMergeStr(a []string, b ...[]string) []string
- func ArrayUnique(arr []string) []string
- func CheckAppID(f validator.FieldLevel) bool
- func CheckChar(f validator.FieldLevel) bool
- func CheckCnEnNum(f validator.FieldLevel) bool
- func CheckCnEnNumChar(f validator.FieldLevel) bool
- func CheckEgt0(f validator.FieldLevel) bool
- func CheckEmail(f validator.FieldLevel) bool
- func CheckEmptyString(keys map[string]string) string
- func CheckFloatStr(f validator.FieldLevel) bool
- func CheckInt16(f validator.FieldLevel) bool
- func CheckInt32(f validator.FieldLevel) bool
- func CheckInt64(f validator.FieldLevel) bool
- func CheckIntStr(f validator.FieldLevel) bool
- func CheckKey(f validator.FieldLevel) bool
- func CheckKeys(f validator.FieldLevel) bool
- func CheckKeyword(f validator.FieldLevel) bool
- func CheckMD5(f validator.FieldLevel) bool
- func CheckName(f validator.FieldLevel) bool
- func CheckPassWd(f validator.FieldLevel) bool
- func CheckPhone(f validator.FieldLevel) bool
- func CheckRemark(f validator.FieldLevel) bool
- func CheckRoute(f validator.FieldLevel) bool
- func CheckText(f validator.FieldLevel) bool
- func CheckTrueFalse(f validator.FieldLevel) bool
- func CheckUnionSn(f validator.FieldLevel) bool
- func CheckUrl(f validator.FieldLevel) bool
- func CheckUser(f validator.FieldLevel) bool
- func CmdExecWindows(c string, cmdPath string) string
- func CreateMultiDir(filePath string) error
- func DeBmUrlStr(key string, str string) string
- func Die(t ...interface{})
- func E(msg string) error
- func Echo(a ...interface{})
- func EchoFail(str string)
- func EchoInfo(str string)
- func EchoPlus(str string, color string, bg string, highLight string)
- func EchoSuccess(str string)
- func EchoWarning(str string)
- func Err(e error)
- func ExecCommand(name, sangS string) error
- func ExitGoFunc(done chan int)
- func ExplodeInt(s string, sp string) (its []int)
- func ExplodeStr(s string, sp string) []string
- func FileGetContent(path string) (string, error)
- func FilterMapEmpty(mp map[string]interface{}, ign []string) map[string]interface{}
- func FilterStr(strs []string) []string
- func GetMaxProcess()
- func GetProcessByCmd(cmd string) (pn *process.Process, e error)
- func GetRandPort() (port int)
- func GetRelativePath() (rootDir string, e error)
- func GetSysBit() int
- func InArrayStr(one string, arr []string) bool
- func InitBaseApi(bm []string, key string, oldSign string) (err error, uri string, sign string)
- func MapToQuery(m map[string]interface{}) string
- func MyDate(Format interface{}, UnixTime interface{}) string
- func Now() int
- func OpenTrans()
- func PathJoin(p ...string) string
- func Pln(a ...interface{})
- func ProcessId() (pid []int32)
- func ProcessName() (pname []string)
- func RegValidate()
- func SendMail(d def.SendMailSt) error
- func ShellExec(c string, cmdShow bool, runtimeShow bool) string
- func ShellExecEcho(c string) string
- func ShellExecEchoDisable(c string) string
- func ShellRt(c string, showCmd bool) string
- func SleepMs(sec int)
- func SleepNs(sec int)
- func SleepSec(sec int)
- func SleepSecCount(sec int)
- func SleepUs(sec int)
- func Str2Float(str string) float64
- func Str2Int(str string) int
- func StrSplit(str string, ls int) (s []string)
- func StrToTime(tStr string) int
- func StructToMap(obj interface{}) map[string]interface{}
- func ValidateAndOpError(s interface{}) (err error, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayFilterString ¶
ArrayFilterString 删除string数组里的空值
func ArrayMergeStr ¶
ArrayMergeStr 合并string数组
func CheckCnEnNumChar ¶
func CheckCnEnNumChar(f validator.FieldLevel) bool
CheckCnEnNumChar 中英文数字常见字符
func CheckEmptyString ¶
CheckEmptyString 返回map里为空的键,逗号分隔
func CreateMultiDir ¶
CreateMultiDir 调用os.MkdirAll递归创建文件夹
func Echo ¶
func Echo(a ...interface{})
func FilterMapEmpty ¶
FilterMapEmpty 过滤为空的map和忽略的map,保留不为空和忽略字段
func GetProcessByCmd ¶
GetProcessByCmd 根据cmd命令获取对应的pid
func InitBaseApi ¶
InitBaseApi 初始化获取域名
func ShellExec ¶
ShellExec 执行shell,同步
func ShellExecEchoDisable ¶
ShellExecEchoDisable 执行shell,不显示详情
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.