MCPcopy Create free account

hub / github.com/ThreeKing2018/goutil / functions

Functions502 in github.com/ThreeKing2018/goutil

MethodNext
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
MethodNext
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
MethodNext
(time.Time)
cronjobs/cron/cron_test.go:382
MethodNext
当前时间 加上 多少秒
time/gotime.go:63
MethodNowEnd
获取当天的结束时间, eg: 2018-01-01 23:59:59
time/gotime.go:51
MethodNowStart
获取当天的开始时间, eg: 2018-01-01 00:00:00
time/gotime.go:44
MethodNums
()
paginator/paginator.go:35
MethodOffset
()
paginator/paginator.go:135
MethodPageLinkFirst
()
paginator/paginator.go:115
MethodPageLinkLast
()
paginator/paginator.go:119
MethodPageLinkNext
()
paginator/paginator.go:108
MethodPageLinkPrev
()
paginator/paginator.go:101
MethodPages
()
paginator/paginator.go:60
FunctionPanic
(args ...interface{})
golog/init.go:48
MethodPanic
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:132
FunctionPanicf
(format string, args ...interface{})
golog/init.go:68
MethodPanicf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:151
FunctionPanicw
(msg string, keysAndValues ...interface{})
golog/init.go:92
MethodPanicw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:170
FunctionRandInt64
(min, max int64)
random/random.go:5
MethodReadConfig
设置配置文件
config/operating.go:14
MethodReadConfig
(in io.Reader, c map[string]interface{})
config/ini/ini.go:17
MethodReadConfig
(in io.Reader, c map[string]interface{})
config/gotoml/gotoml.go:27
MethodReadConfig
(in io.Reader, c map[string]interface{})
config/json/json.go:29
FunctionRealPath
get absolute filepath, based on built executable file
filetool/filetool.go:83
FunctionRename
rename file name
filetool/filetool.go:44
FunctionReplaceNull
替换成空
tools/tools.go:6
MethodRequireEq
相等则报错
check/check.go:54
MethodRequireInt
检查参数是否为空
check/check.go:32
MethodRequireNe
不相等则报错
check/check.go:41
MethodResolveNow
(rn resolver.ResolveNowOption)
register/resolver.go:52
MethodRun
()
cronjobs/job.go:18
MethodRun
()
cronjobs/cron/cron.go:99
MethodRun
Run the cron scheduler, or no-op if already running.
cronjobs/cron/cron.go:159
MethodRun
()
cronjobs/cron/cron_test.go:29
MethodRun
()
cronjobs/cron/cron_test.go:278
FunctionSearchFile
Search a file in paths. this is often used in search config file in /etc ~/
filetool/filetool.go:72
FunctionSelfDir
SelfDir gets compiled executable file directory
filetool/filetool.go:18
MethodSetConfig
SetConfigName 设置配置文件的名称
config/viper.go:96
MethodSetConfigFile
(configfile string)
config/ini/ini.go:13
MethodSetConfigFile
(configfile string)
config/gotoml/gotoml.go:20
MethodSetConfigFile
(configfile string)
config/json/json.go:25
MethodSetDefault
注册默认值
config/viper.go:82
MethodSetFunc
(fn func(key string, value interface{}) error)
config/viper.go:140
MethodSetKeyDelim
(delim string)
config/viper.go:19
MethodSetKeyDelim
(delim string)
config/viper.go:87
MethodSetLogLevel
(level conf.Level)
golog/plugins/zaplog/zaplog.go:116
MethodSetRemote
(prefix, remoteType string, endpoint []string)
config/viper.go:22
MethodSetRemote
(prefix, remoteType string, endpoint []string)
config/viper.go:149
MethodSetSplit
(key string, value []interface{})
config/set_viper.go:11
FunctionSleepRandomDuration
(t int)
systool/system.go:116
FunctionSliceContains
(sl []interface{}, v interface{})
slicetool/slicetool.go:3
FunctionSliceContainsInt
(sl []int, v int)
slicetool/slicetool.go:12
FunctionSliceContainsInt64
(sl []int64, v int64)
slicetool/slicetool.go:21
FunctionSliceContainsString
(sl []string, v string)
slicetool/slicetool.go:30
FunctionSliceMerge
SliceMerge merges interface slices to one slice.
slicetool/slicetool.go:40
FunctionSliceMergeInt
(slice1, slice2 []int)
slicetool/slicetool.go:45
FunctionSliceMergeInt64
(slice1, slice2 []int64)
slicetool/slicetool.go:50
FunctionSliceMergeString
(slice1, slice2 []string)
slicetool/slicetool.go:55
FunctionSliceSumFloat64
(intslice []float64)
slicetool/slicetool.go:143
FunctionSliceSumInt
(intslice []int)
slicetool/slicetool.go:136
FunctionSliceSumInt64
(intslice []int64)
slicetool/slicetool.go:129
FunctionSliceUniqueInt
(s []int)
slicetool/slicetool.go:83
FunctionSliceUniqueInt64
(s []int64)
slicetool/slicetool.go:60
FunctionSliceUniqueString
(s []string)
slicetool/slicetool.go:106
MethodStartJob
()
cronjobs/cron.go:61
MethodStop
Stop stops the cron scheduler if it is running; otherwise it does nothing.
cronjobs/cron/cron.go:252
FunctionStopJob
()
cronjobs/init.go:33
MethodStopJob
()
cronjobs/cron.go:65
FunctionStringToInt
string to int
convertor/integer.go:16
MethodSwap
(i, j int)
cronjobs/cron/cron.go:63
FunctionSync
目前只有zap生效
golog/init.go:31
MethodSync
()
golog/plugins/zaplog/zaplog.go:112
FunctionTestActivation
(t *testing.T)
cronjobs/cron/spec_test.go:8
FunctionTestAddBeforeRunning
Add a job, start cron, expect it runs.
cronjobs/cron/cron_test.go:78
FunctionTestAddWhileRunning
Start cron, add a job, expect it runs.
cronjobs/cron/cron_test.go:96
FunctionTestAddWhileRunningWithDelay
Test for #34. Adding a job after calling start results in multiple job invocations
cronjobs/cron/cron_test.go:113
FunctionTestAll
(t *testing.T)
cronjobs/cron/parser_test.go:78
FunctionTestBasename
获取文件名称
filetool/filetool_test.go:40
FunctionTestBits
(t *testing.T)
cronjobs/cron/parser_test.go:99
FunctionTestBlockingRun
Test blocking run method behaves as Start()
cronjobs/cron/cron_test.go:292
FunctionTestBytesToInt64
(t *testing.T)
convertor/convertor_test.go:14
FunctionTestConstantDelayNext
(t *testing.T)
cronjobs/cron/constantdelay_test.go:8
FunctionTestDir
获取当前目录
filetool/filetool_test.go:55
FunctionTestDirsUnder
(t *testing.T)
filetool/filetool_test.go:59
FunctionTestErrors
(t *testing.T)
cronjobs/cron/spec_test.go:169
FunctionTestField
(t *testing.T)
cronjobs/cron/parser_test.go:58
FunctionTestFileMTime
获取文件修改时间戳
filetool/filetool_test.go:46
FunctionTestFileToInt64
将文件内的数字转换成int64
filetool/filetool_test.go:22
FunctionTestFileToUint64
将文件内的数字转换成无符号的int64
filetool/filetool_test.go:31
FunctionTestFuncPanicRecovery
(t *testing.T)
cronjobs/cron/cron_test.go:15
FunctionTestGetCurrentDirectory
获取执行文件目录, 直接会显示出临时文件 ,必须先go build 再go run main.go
pwdtools/pwdtools_test.go:9
FunctionTestGetExecFilePath
(t *testing.T)
pwdtools/pwdtools_test.go:12
FunctionTestGetRootDir
(t *testing.T)
pwdtools/pwdtools_test.go:15
FunctionTestGoTime_Before
(t *testing.T)
time/gotime_test.go:12
FunctionTestGoTime_GetRFC3339
(t *testing.T)
time/gotime_test.go:32
FunctionTestGoTime_GetYmd
(t *testing.T)
time/gotime_test.go:20
FunctionTestGoTime_Next
(t *testing.T)
time/gotime_test.go:16
FunctionTestGoTime_Now
(t *testing.T)
time/gotime_test.go:8
FunctionTestGoTime_NowTime
(t *testing.T)
time/gotime_test.go:24
← previousnext →301–400 of 502, ranked by callers