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
Method
Next
Next returns the next time this schedule is activated, greater than the given time. If no time can be found to satisfy the schedule, return the zero
cronjobs/cron/spec.go:55
Method
Next
Next returns the next time this should be run. This rounds so that the next activation time will be on the second.
cronjobs/cron/constantdelay.go:25
Method
Next
(time.Time)
cronjobs/cron/cron_test.go:382
Method
Next
当前时间 加上 多少秒
time/gotime.go:63
Method
NowEnd
获取当天的结束时间, eg: 2018-01-01 23:59:59
time/gotime.go:51
Method
NowStart
获取当天的开始时间, eg: 2018-01-01 00:00:00
time/gotime.go:44
Method
Nums
()
paginator/paginator.go:35
Method
Offset
()
paginator/paginator.go:135
Method
PageLinkFirst
()
paginator/paginator.go:115
Method
PageLinkLast
()
paginator/paginator.go:119
Method
PageLinkNext
()
paginator/paginator.go:108
Method
PageLinkPrev
()
paginator/paginator.go:101
Method
Pages
()
paginator/paginator.go:60
Function
Panic
(args ...interface{})
golog/init.go:48
Method
Panic
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:132
Function
Panicf
(format string, args ...interface{})
golog/init.go:68
Method
Panicf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:151
Function
Panicw
(msg string, keysAndValues ...interface{})
golog/init.go:92
Method
Panicw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:170
Function
RandInt64
(min, max int64)
random/random.go:5
Method
ReadConfig
设置配置文件
config/operating.go:14
Method
ReadConfig
(in io.Reader, c map[string]interface{})
config/ini/ini.go:17
Method
ReadConfig
(in io.Reader, c map[string]interface{})
config/gotoml/gotoml.go:27
Method
ReadConfig
(in io.Reader, c map[string]interface{})
config/json/json.go:29
Function
RealPath
get absolute filepath, based on built executable file
filetool/filetool.go:83
Function
Rename
rename file name
filetool/filetool.go:44
Function
ReplaceNull
替换成空
tools/tools.go:6
Method
RequireEq
相等则报错
check/check.go:54
Method
RequireInt
检查参数是否为空
check/check.go:32
Method
RequireNe
不相等则报错
check/check.go:41
Method
ResolveNow
(rn resolver.ResolveNowOption)
register/resolver.go:52
Method
Run
()
cronjobs/job.go:18
Method
Run
()
cronjobs/cron/cron.go:99
Method
Run
Run the cron scheduler, or no-op if already running.
cronjobs/cron/cron.go:159
Method
Run
()
cronjobs/cron/cron_test.go:29
Method
Run
()
cronjobs/cron/cron_test.go:278
Function
SearchFile
Search a file in paths. this is often used in search config file in /etc ~/
filetool/filetool.go:72
Function
SelfDir
SelfDir gets compiled executable file directory
filetool/filetool.go:18
Method
SetConfig
SetConfigName 设置配置文件的名称
config/viper.go:96
Method
SetConfigFile
(configfile string)
config/ini/ini.go:13
Method
SetConfigFile
(configfile string)
config/gotoml/gotoml.go:20
Method
SetConfigFile
(configfile string)
config/json/json.go:25
Method
SetDefault
注册默认值
config/viper.go:82
Method
SetFunc
(fn func(key string, value interface{}) error)
config/viper.go:140
Method
SetKeyDelim
(delim string)
config/viper.go:19
Method
SetKeyDelim
(delim string)
config/viper.go:87
Method
SetLogLevel
(level conf.Level)
golog/plugins/zaplog/zaplog.go:116
Method
SetRemote
(prefix, remoteType string, endpoint []string)
config/viper.go:22
Method
SetRemote
(prefix, remoteType string, endpoint []string)
config/viper.go:149
Method
SetSplit
(key string, value []interface{})
config/set_viper.go:11
Function
SleepRandomDuration
(t int)
systool/system.go:116
Function
SliceContains
(sl []interface{}, v interface{})
slicetool/slicetool.go:3
Function
SliceContainsInt
(sl []int, v int)
slicetool/slicetool.go:12
Function
SliceContainsInt64
(sl []int64, v int64)
slicetool/slicetool.go:21
Function
SliceContainsString
(sl []string, v string)
slicetool/slicetool.go:30
Function
SliceMerge
SliceMerge merges interface slices to one slice.
slicetool/slicetool.go:40
Function
SliceMergeInt
(slice1, slice2 []int)
slicetool/slicetool.go:45
Function
SliceMergeInt64
(slice1, slice2 []int64)
slicetool/slicetool.go:50
Function
SliceMergeString
(slice1, slice2 []string)
slicetool/slicetool.go:55
Function
SliceSumFloat64
(intslice []float64)
slicetool/slicetool.go:143
Function
SliceSumInt
(intslice []int)
slicetool/slicetool.go:136
Function
SliceSumInt64
(intslice []int64)
slicetool/slicetool.go:129
Function
SliceUniqueInt
(s []int)
slicetool/slicetool.go:83
Function
SliceUniqueInt64
(s []int64)
slicetool/slicetool.go:60
Function
SliceUniqueString
(s []string)
slicetool/slicetool.go:106
Method
StartJob
()
cronjobs/cron.go:61
Method
Stop
Stop stops the cron scheduler if it is running; otherwise it does nothing.
cronjobs/cron/cron.go:252
Function
StopJob
()
cronjobs/init.go:33
Method
StopJob
()
cronjobs/cron.go:65
Function
StringToInt
string to int
convertor/integer.go:16
Method
Swap
(i, j int)
cronjobs/cron/cron.go:63
Function
Sync
目前只有zap生效
golog/init.go:31
Method
Sync
()
golog/plugins/zaplog/zaplog.go:112
Function
TestActivation
(t *testing.T)
cronjobs/cron/spec_test.go:8
Function
TestAddBeforeRunning
Add a job, start cron, expect it runs.
cronjobs/cron/cron_test.go:78
Function
TestAddWhileRunning
Start cron, add a job, expect it runs.
cronjobs/cron/cron_test.go:96
Function
TestAddWhileRunningWithDelay
Test for #34. Adding a job after calling start results in multiple job invocations
cronjobs/cron/cron_test.go:113
Function
TestAll
(t *testing.T)
cronjobs/cron/parser_test.go:78
Function
TestBasename
获取文件名称
filetool/filetool_test.go:40
Function
TestBits
(t *testing.T)
cronjobs/cron/parser_test.go:99
Function
TestBlockingRun
Test blocking run method behaves as Start()
cronjobs/cron/cron_test.go:292
Function
TestBytesToInt64
(t *testing.T)
convertor/convertor_test.go:14
Function
TestConstantDelayNext
(t *testing.T)
cronjobs/cron/constantdelay_test.go:8
Function
TestDir
获取当前目录
filetool/filetool_test.go:55
Function
TestDirsUnder
(t *testing.T)
filetool/filetool_test.go:59
Function
TestErrors
(t *testing.T)
cronjobs/cron/spec_test.go:169
Function
TestField
(t *testing.T)
cronjobs/cron/parser_test.go:58
Function
TestFileMTime
获取文件修改时间戳
filetool/filetool_test.go:46
Function
TestFileToInt64
将文件内的数字转换成int64
filetool/filetool_test.go:22
Function
TestFileToUint64
将文件内的数字转换成无符号的int64
filetool/filetool_test.go:31
Function
TestFuncPanicRecovery
(t *testing.T)
cronjobs/cron/cron_test.go:15
Function
TestGetCurrentDirectory
获取执行文件目录, 直接会显示出临时文件 ,必须先go build 再go run main.go
pwdtools/pwdtools_test.go:9
Function
TestGetExecFilePath
(t *testing.T)
pwdtools/pwdtools_test.go:12
Function
TestGetRootDir
(t *testing.T)
pwdtools/pwdtools_test.go:15
Function
TestGoTime_Before
(t *testing.T)
time/gotime_test.go:12
Function
TestGoTime_GetRFC3339
(t *testing.T)
time/gotime_test.go:32
Function
TestGoTime_GetYmd
(t *testing.T)
time/gotime_test.go:20
Function
TestGoTime_Next
(t *testing.T)
time/gotime_test.go:16
Function
TestGoTime_Now
(t *testing.T)
time/gotime_test.go:8
Function
TestGoTime_NowTime
(t *testing.T)
time/gotime_test.go:24
← previous
next →
301–400 of 502, ranked by callers