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
Function
TestGoTime_RfcToUnix
(t *testing.T)
time/gotime_test.go:28
Function
TestGoTime_ToRFC3339
(t *testing.T)
time/gotime_test.go:36
Function
TestHttpGet
(t *testing.T)
curl/curl_test.go:8
Function
TestInArray
(t *testing.T)
array/array_test.go:23
Function
TestInt64ArrToInString
(t *testing.T)
array/array_test.go:13
Function
TestInt64ToBytes
(t *testing.T)
convertor/convertor_test.go:8
Function
TestIntArrToInString
(t *testing.T)
array/array_test.go:8
Function
TestInvalidJobSpec
Test that adding an invalid job spec returns an error
cronjobs/cron/cron_test.go:283
Function
TestJob
Simple test using Runnables.
cronjobs/cron/cron_test.go:344
Function
TestJobPanicRecovery
(t *testing.T)
cronjobs/cron/cron_test.go:33
Function
TestJobWithZeroTimeDoesNotRun
Tests that job without time does not run
cronjobs/cron/cron_test.go:387
Function
TestLocalTimezone
Test that the cron is run in the local time zone (as opposed to UTC).
cronjobs/cron/cron_test.go:219
Function
TestMd5
(t *testing.T)
strtool/strtool_test.go:13
Function
TestMultipleEntries
Test that the entries are correctly sorted. Add a bunch of long-in-the-future entries, and an immediate entry, and ensure that the immediate entry run
cronjobs/cron/cron_test.go:156
Function
TestNext
(t *testing.T)
cronjobs/cron/spec_test.go:73
Function
TestNextWithTz
(t *testing.T)
cronjobs/cron/spec_test.go:206
Function
TestNoEntries
Start and stop cron with no entries.
cronjobs/cron/cron_test.go:48
Function
TestNonLocalTimezone
Test that the cron is run in the given time zone (as opposed to local).
cronjobs/cron/cron_test.go:240
Function
TestParse
(t *testing.T)
cronjobs/cron/parser_test.go:119
Function
TestRandomString
(t *testing.T)
strtool/strtool_test.go:18
Function
TestRange
(t *testing.T)
cronjobs/cron/parser_test.go:10
Function
TestRunningJobTwice
Test running the same job twice.
cronjobs/cron/cron_test.go:177
Function
TestRunningMultipleSchedules
(t *testing.T)
cronjobs/cron/cron_test.go:196
Function
TestSnapshotEntries
Test timing with Entries.
cronjobs/cron/cron_test.go:128
Function
TestStandardSpecSchedule
(t *testing.T)
cronjobs/cron/parser_test.go:198
Function
TestStart
(t *testing.T)
timer/timer_test.go:5
Function
TestStartNoop
Test that double-running is a no-op
cronjobs/cron/cron_test.go:317
Function
TestStartTicker
(t *testing.T)
timer/timer_test.go:8
Function
TestStopCausesJobsToNotRun
Start, stop, then add an entry. Verify entry doesn't run.
cronjobs/cron/cron_test.go:60
Function
TestStopWithoutStart
Test that calling stop before start silently returns without blocking the stop channel.
cronjobs/cron/cron_test.go:268
Function
TestStringArrToInString
(t *testing.T)
array/array_test.go:18
Function
TestTrimRightSpace
(t *testing.T)
strtool/strtool_test.go:8
Function
TestValidateOnlineBankCode
(t *testing.T)
three_service/bank_test.go:8
Function
Test_Debug
(t *testing.T)
logtool/logtool_test.go:8
Function
Test_DiscoveryService
测试客户端发现
register/register_test.go:27
Function
Test_Error
(t *testing.T)
logtool/logtool_test.go:17
Function
Test_ExcludeIp_str
(t *testing.T)
goaddr/getaddr_test.go:25
Function
Test_Fetal
(t *testing.T)
logtool/logtool_test.go:20
Function
Test_Getlocal_str
(t *testing.T)
goaddr/getaddr_test.go:31
Function
Test_GetneiIp_str
str
goaddr/getaddr_test.go:9
Function
Test_GetneiIp_tcp
tcp
goaddr/getaddr_test.go:38
Function
Test_GetneiIp_udp
udp
goaddr/getaddr_test.go:56
Function
Test_GetwaiIp_str
(t *testing.T)
goaddr/getaddr_test.go:14
Function
Test_GetwaiIp_tcp
(t *testing.T)
goaddr/getaddr_test.go:44
Function
Test_GetwaiIp_udp
(t *testing.T)
goaddr/getaddr_test.go:62
Function
Test_Info
(t *testing.T)
logtool/logtool_test.go:11
Function
Test_Md5Byte
测试字节数组hash
hash/byte_test.go:9
Function
Test_Md5File
测试文件hash
hash/file_test.go:9
Function
Test_Md5String
测试字符串hash
hash/string_test.go:9
Function
Test_RegisterService
Test_RegisterServer 测试服务注册
register/register_test.go:18
Function
Test_SetLevel
(t *testing.T)
logtool/logtool_test.go:23
Function
Test_Sha1Byte
(t *testing.T)
hash/byte_test.go:16
Function
Test_Sha1File
(t *testing.T)
hash/file_test.go:19
Function
Test_Sha1String
(t *testing.T)
hash/string_test.go:16
Function
Test_Sha256Byte
(t *testing.T)
hash/byte_test.go:23
Function
Test_Sha256File
(t *testing.T)
hash/file_test.go:29
Function
Test_Sha256String
(t *testing.T)
hash/string_test.go:23
Function
Test_Sha512Byte
(t *testing.T)
hash/byte_test.go:30
Function
Test_Sha512File
(t *testing.T)
hash/file_test.go:39
Function
Test_Sha512String
(t *testing.T)
hash/string_test.go:30
Function
Test_Trace
(t *testing.T)
logtool/logtool_test.go:5
Function
Test_Warn
(t *testing.T)
logtool/logtool_test.go:14
Function
Test_client
(t *testing.T)
config/backend/etcdv3/etcdv3_test.go:10
Function
Test_cron
* type Task struct { Id int Name string CronSpec string //'时间表达式', Concurrent int //'是否只允许一个实例', Command string /
cronjobs/cron_test.go:39
Function
Test_logge
(t *testing.T)
golog/golog_test.go:10
Function
Test_viper
* func Test_JsonConf(t *testing.T) { a := GetInstance() a.ParseConf("../cmd/server.json","json") fmt.Println(a.Cfg.Version) a.Cfg.Version = "1.12
config/viper_test.go:31
Function
ToInt64
convert any numeric value to int64 任意类型转int64
convertor/integer.go:29
Method
ToUnix
2006-01-02 15:04:05 转 时间戳
time/gotime.go:77
Function
UnRegister
UnRegister remove service from etcd
register/naming.go:70
Function
Unlink
delete file
filetool/filetool.go:49
Function
Warn
(args ...interface{})
golog/init.go:42
Method
Warn
(fields ...interface{})
golog/plugins/zaplog/zaplog.go:126
Function
Warnf
(format string, args ...interface{})
golog/init.go:62
Method
Warnf
(template string, args ...interface{})
golog/plugins/zaplog/zaplog.go:145
Function
Warnw
(msg string, keysAndValues ...interface{})
golog/init.go:84
Method
Warnw
(msg string, keysAndValues ...interface{})
golog/plugins/zaplog/zaplog.go:164
Method
Watch
(stop chan struct{})
config/backend/etcd/etcd.go:90
Method
Watch
(stop chan struct{})
config/backend/file/file.go:22
Method
Watch
()
config/backend/etcdv3/etcdv3.go:56
Method
Watch1
func (c *client) Watch(stop chan struct{}) <-chan *resp.Response {
config/backend/etcdv3/etcdv3.go:79
Method
WatchConfig
这里的stop 以后可以换成context,, string, map,[]string []int 都能自动转换,其他类型需要自定义fn函数
config/watch.go:14
Method
WatchPrefix
(prefix string, keys []string, waitIndex uint64, stopChan chan bool)
config/backend/etcdv3/aaa.go:225
Function
WithFilename
(logpath string)
golog/conf/option.go:22
Function
WithIsStdOut
(isstdout bool)
golog/conf/option.go:52
Function
WithLogLevel
(loglevel Level)
golog/conf/option.go:28
Function
WithLogType
(logtype string)
golog/conf/option.go:16
Function
WithMaxAge
(maxage int)
golog/conf/option.go:40
Function
WithMaxSize
(maxsize int)
golog/conf/option.go:34
Function
WithProjectName
(projectname string)
golog/conf/option.go:58
Function
WithStacktrace
(stacktrace Level)
golog/conf/option.go:46
Method
WriteConfig
(v interface{})
config/ini/ini.go:21
Method
WriteConfig
(v interface{})
config/gotoml/gotoml.go:44
Method
WriteConfig
(v interface{})
config/json/json.go:37
Function
WritePidFile
(pidFilePath string)
systool/system.go:18
Function
WriteStringToFile
WriteStringFile saves content type 'string' to file by given path. It returns error when fail to finish operation.
filetool/writer.go:22
Function
absPathify
(inPath string)
config/util.go:19
Function
init
()
good/yilaizhurou.go:23
Function
init
()
filetool/filetool_test.go:13
Function
init
()
cronjobs/init.go:10
Function
main
()
a.go:9
← previous
next →
401–500 of 502, ranked by callers