Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThreeKing2018/goutil
/ functions
Functions
502 in github.com/ThreeKing2018/goutil
⨍
Functions
502
◇
Types & classes
56
↓ 1 callers
Function
stringInSlice
(a string, list []string)
config/util.go:10
↓ 1 callers
Method
watch
(keyPrefix string)
register/resolver.go:61
↓ 1 callers
Function
withAlive
(name string, addr string, ttl int64)
register/naming.go:49
Method
AddJob
(spec string, job *Job)
cronjobs/cron.go:30
Function
AnyToAny
(p interface{})
convertor/interface.go:3
Method
Build
(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOption)
register/resolver.go:28
Function
Choke
实现程序阻塞
choke/choke.go:11
Function
CmdOutBytes
(name string, arg ...string)
systool/command.go:20
Function
CmdOutNoLn
(name string, arg ...string)
systool/command.go:28
Function
CmdRunWithTimeout
(cmd *exec.Cmd, timeout time.Duration)
systool/command.go:36
Method
Debug
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:120
Function
Debugf
需要格式化日志dlog.error("err",err)
golog/init.go:56
Method
Debugf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:139
Function
Debugw
key value
golog/init.go:76
Method
Debugw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:158
Method
DelJob
(jobId int)
cronjobs/cron.go:40
Function
DetailJob
()
cronjobs/init.go:25
Method
DetailJob
()
cronjobs/cron.go:55
Function
DialTimeout
(network, address string, timeout time.Duration)
rpctool/rpctool.go:10
Function
DisplaySize
(raw float64)
formatter/formatter.go:7
Function
Error
(args ...interface{})
golog/init.go:45
Method
Error
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:129
Method
Error
()
config/error.go:8
Method
Error
()
config/error.go:14
Method
Error
()
config/error.go:20
Method
Error
Error returns the formatted configuration error.
config/error.go:30
Method
Error
Error returns the formatted remote provider error.
config/error.go:39
Function
Errorf
(format string, args ...interface{})
golog/init.go:65
Method
Errorf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:148
Function
Errorw
(msg string, keysAndValues ...interface{})
golog/init.go:88
Method
Errorw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:167
Function
Ext
(file string)
filetool/filetool.go:39
Function
Fatal
(args ...interface{})
golog/init.go:51
Method
Fatal
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:135
Function
Fatalf
(format string, args ...interface{})
golog/init.go:71
Method
Fatalf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:154
Function
Fatalw
(msg string, keysAndValues ...interface{})
golog/init.go:96
Method
Fatalw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:173
Function
FileSize
get file size as how many bytes
filetool/filetool.go:101
Function
FilesUnder
list files under dirPath
filetool/filetool.go:140
Method
GetBool
(key string)
config/get_viper.go:12
Method
GetBool
(key string)
config/get_viper.go:32
Method
GetDuration
(key string)
config/get_viper.go:18
Method
GetDuration
(key string)
config/get_viper.go:68
Method
GetFloat64
(key string)
config/get_viper.go:16
Method
GetFloat64
(key string)
config/get_viper.go:56
Method
GetHms
获取时分秒
time/gotime.go:39
Method
GetInt
(key string)
config/get_viper.go:13
Method
GetInt
(key string)
config/get_viper.go:38
Method
GetInt32
(key string)
config/get_viper.go:14
Method
GetInt32
(key string)
config/get_viper.go:44
Method
GetInt64
(key string)
config/get_viper.go:15
Method
GetInt64
(key string)
config/get_viper.go:50
Method
GetIntSlice
(key string)
config/get_viper.go:20
Method
GetIntSlice
(key string)
config/get_viper.go:80
Method
GetString
(key string)
config/get_viper.go:11
Method
GetString
(key string)
config/get_viper.go:26
Method
GetStringMap
(key string)
config/get_viper.go:21
Method
GetStringMap
(key string)
config/get_viper.go:86
Method
GetStringMapString
(key string)
config/get_viper.go:22
Method
GetStringMapString
(key string)
config/get_viper.go:92
Method
GetStringMapStringSlice
(key string)
config/get_viper.go:23
Method
GetStringMapStringSlice
(key string)
config/get_viper.go:98
Method
GetStringSlice
(key string)
config/get_viper.go:19
Method
GetStringSlice
(key string)
config/get_viper.go:74
Method
GetTime
(key string)
config/get_viper.go:17
Method
GetTime
(key string)
config/get_viper.go:62
Method
GetValues
GetValues queries etcd for keys prefixed by prefix.
config/backend/etcdv3/aaa.go:163
Function
GrabEphemeralPort
()
systool/system.go:81
Method
HasPages
()
paginator/paginator.go:139
Method
Images
检查图片是否上传 支持数组
check/check.go:97
Method
InArrayString
检查是否包含,不包含则报错
check/check.go:14
Function
Info
(args ...interface{})
golog/init.go:39
Method
Info
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:123
Function
Infof
(format string, args ...interface{})
golog/init.go:59
Method
Infof
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:142
Function
Infow
(msg string, keysAndValues ...interface{})
golog/init.go:80
Method
Infow
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:161
Function
InsureDir
(path string)
filetool/filetool.go:32
Function
IntToInt64
int to int64
convertor/integer.go:22
Function
IntranetIP
()
systool/system.go:122
Method
IsActive
(page int)
paginator/paginator.go:131
Function
IsFile
IsFile checks whether the path is a file, it returns false when it's a directory or does not exist.
filetool/filetool.go:55
Method
Len
()
cronjobs/cron/cron.go:62
Method
Less
(i, j int)
cronjobs/cron/cron.go:64
Method
List
(respChan chan *resp.Response)
config/backend/etcd/etcd.go:72
Method
List
(respChan chan *resp.Response)
config/backend/file/file.go:18
Method
List
(respChan chan *resp.Response)
config/backend/etcdv3/etcdv3.go:37
Function
LocalDnsName
()
systool/system.go:53
Function
LogDetail
(num int)
cronjobs/init.go:37
Method
MapKey
判断map key是否存在,不存在则false
check/check.go:107
Function
New
(opts ...conf.Option)
golog/plugins/zaplog/zaplog.go:51
Function
New
(config *Config)
config/backend/backend.go:37
Function
NewClient
(endpoint []string, Prefix, Delim string)
config/backend/etcd/etcd.go:20
Function
NewClient
(configFile string)
config/backend/file/file.go:12
Function
NewConf
()
config/ini/ini.go:9
Function
NewConf
()
config/gotoml/gotoml.go:16
Function
NewConf
()
config/json/json.go:21
Function
NewEtcdClient
NewEtcdClient returns an *etcdv3.Client with a connection to named machines.
config/backend/etcdv3/aaa.go:108
Function
NewPaginator
(req *http.Request, per int, nums interface{})
paginator/paginator.go:143
← previous
next →
201–300 of 502, ranked by callers