MCPcopy Create free account

hub / github.com/farseer-go/fs / functions

Functions589 in github.com/farseer-go/fs

↓ 154 callersFunctionConvert
Convert 通用的类型转换
parse/convert.go:30
↓ 48 callersMethodToString
()
trace/eumCallType/enum.go:17
↓ 29 callersFunctionIsEqual
IsEqual 比较两个值是否相等
parse/equal.go:6
↓ 28 callersMethodDuration
TotalSeconds 获取总秒数 func (receiver DateTime) TotalSeconds() float64 { m, _ := time.ParseDuration(receiver.time.String()) return m.Seconds() //return
dateTime/dt.go:120
↓ 25 callersMethodGet
Get 读取配置
configure/iConfigLoader.go:7
↓ 25 callersFunctionRed
Red 转为红色字体
color/colors.go:34
↓ 23 callersFunctiongetCacheVal
(key string)
types/listType.go:134
↓ 22 callersFunctionIsGoBasicType
IsGoBasicType 是否为Go内置基础类型
types/isType.go:88
↓ 20 callersFunctionRegister
Register 注册实例,默认使用单例
container/register.go:18
↓ 19 callersFunctionNow
Now 当前时间
dateTime/dt.go:37
↓ 19 callersMethodSet
Set 设置值
asyncLocal/newAsyncLocal.go:44
↓ 19 callersMethodUnixMilli
UnixMilli 获取毫秒
dateTime/dt.go:125
↓ 18 callersFunctionNew
New 初始化
dateTime/dt.go:44
↓ 17 callersMethodErrorf
Error Error日志
core/iLog.go:16
↓ 16 callersMethodAdd
Add 添加一个定时任务
timingWheel/timingWheel.go:73
↓ 16 callersMethodError
Warningf Warning日志
core/iLog.go:15
↓ 16 callersFunctionYellow
Yellow 转为黄色字体
color/colors.go:52
↓ 15 callersMethodMonth
Month 获取月
dateTime/dt.go:98
↓ 15 callersFunctionnumberToNumber
(source T, defVal any, returnKind reflect.Kind)
parse/toNumber.go:45
↓ 13 callersFunctionGetString
GetString 获取配置
configure/get.go:61
↓ 13 callersMethodUnixMicro
UnixMicro 获取微秒
dateTime/dt.go:128
↓ 13 callersMethodYear
Year 获取年
dateTime/dt.go:95
↓ 12 callersMethodDay
Day 获取日
dateTime/dt.go:101
↓ 12 callersFunctionGetEnum
GetEnum 名称转枚举
core/eumLogLevel/enum.go:23
↓ 12 callersFunctionTry
Try 执行有可能发生异常的代码块
exception/catchException.go:26
↓ 12 callersFunctionsetCache
(key string, val []int)
types/listType.go:121
↓ 11 callersFunctionPrintln
Println 直接记录日志,没有日志等级
flog/print.go:111
↓ 11 callersMethodUnixNano
UnixNano 获取纳秒
dateTime/dt.go:131
↓ 11 callersFunctiongetCache
(key string)
types/listType.go:127
↓ 10 callersMethodElapsedDuration
ElapsedDuration 返回当前已计时的时间
stopwatch/startNew.go:64
↓ 10 callersFunctionGetRealType
GetRealType 获取真实类型
types/getType.go:8
↓ 10 callersMethodHour
Hour 获取小时
dateTime/dt.go:104
↓ 10 callersMethodMinute
Minute 获取分钟
dateTime/dt.go:107
↓ 10 callersMethodSecond
Second 获取秒
dateTime/dt.go:110
↓ 10 callersMethodToTime
ToTime 获取time.Time类型
dateTime/dt.go:200
↓ 9 callersFunctionAddPrecision
AddPrecision 添加一个定时任务(高精度)
timingWheel/defaultTimingWheel.go:30
↓ 9 callersMethodCatchException
CatchException 捕获Any异常
exception/catchException.go:91
↓ 9 callersMethodGetDbType
()
test/container_interface_test.go:6
↓ 9 callersFunctionMarshal
将对象转换成json(序列化)
snc/json.go:39
↓ 9 callersFunctionPointerOf
PointerOf 传入任意变量类型的值,得出该值对应的类型
fastReflect/valueMeta.go:71
↓ 9 callersMethodSub
Sub 时间相减
dateTime/dt.go:195
↓ 9 callersFunctionnewBrush
(color string)
color/colors.go:25
↓ 8 callersFunctionGreen
Green 转为绿色字体
color/colors.go:70
↓ 8 callersMethodLog
Log 日志记录
flog/iLoggerProvider.go:15
↓ 8 callersMethodRun
(fn func())
trace/traceDetail.go:116
↓ 8 callersFunctiongetIocName
(iocName ...string)
container/register.go:57
↓ 7 callersMethodAdd
AddSeconds 添加秒
dateTime/dt.go:185
↓ 7 callersFunctionBlue
Blue 转为蓝色字体
color/colors.go:88
↓ 7 callersMethodEntryQueueConsumer
(queueName, subscribeName string)
trace/emptyManager.go:16
↓ 7 callersMethodRemove
Remove 移除对象
asyncLocal/newAsyncLocal.go:49
↓ 7 callersMethodlog
调用所有日志记录器的实现
flog/compositionLogger.go:15
↓ 7 callersFunctionnewLogData
(logLevel eumLogLevel.Enum, content string, component string)
flog/logData.go:28
↓ 6 callersMethodCatchRefuseException
CatchRefuseException 捕获RefuseException异常
exception/catchException.go:52
↓ 6 callersMethodDate
Date 获取Date部份
dateTime/dt.go:134
↓ 6 callersFunctionDebugf
Debugf 打印Debug日志
flog/print.go:29
↓ 6 callersMethodEnd
End 链路明细执行完后,统计用时
trace/traceDetail.go:89
↓ 6 callersMethodFormatter
(log *LogData)
flog/iFormatter.go:13
↓ 6 callersFunctionGenerateId
GenerateId 生成唯一ID(18位)
sonyflake/sonyflake.go:24
↓ 6 callersFunctionInfof
Infof 打印Info日志
flog/print.go:39
↓ 6 callersFunctionInitContainer
()
container/register.go:13
↓ 6 callersFunctionStartNew
StartNew 创建计时器,并开始计时
stopwatch/startNew.go:26
↓ 6 callersMethodToString
ToString 转字符串,yyyy-MM-dd hh:mm:ss
dateTime/dt.go:77
↓ 6 callersMethodsetItemHashCode
(itemType reflect.Type)
fastReflect/typeMeta.go:212
↓ 5 callersMethodCatchStringException
CatchStringException 捕获String异常
exception/catchException.go:65
↓ 5 callersFunctionConvertValue
ConvertValue 通用的类型转换
parse/convert.go:18
↓ 5 callersFunctionError
Error 打印Error日志
flog/print.go:54
↓ 5 callersMethodGetItemMeta
()
fastReflect/typeMeta.go:221
↓ 5 callersFunctionGetSubNodes
GetSubNodes 获取所有子节点
configure/get.go:90
↓ 5 callersMethodGetTableName
()
test/container_interface_test.go:5
↓ 5 callersMethodJoin
()
trace/traceDetail.go:67
↓ 4 callersMethodAddDate
AddDate 添加Date
dateTime/dt.go:140
↓ 4 callersMethodAddProviderFormatter
(provider ILoggerProvider, formatter IFormatter, logLevel eumLogLevel.Enum)
flog/iLoggerFactory.go:25
↓ 4 callersMethodCatchWebException
CatchWebException 捕获WebException异常
exception/catchException.go:78
↓ 4 callersMethodGetMillisecondsText
GetMillisecondsText 返回当前已计时的时间(毫秒)
stopwatch/startNew.go:72
↓ 4 callersMethodGetText
GetNanosecondsText 返回当前已计时的时间
stopwatch/startNew.go:87
↓ 4 callersFunctionHashCode
HashCode 获取哈希值
parse/hashCode.go:10
↓ 4 callersFunctionIsDtoModelIgnoreInterface
IsDtoModelIgnoreInterface 当第一个模型为struct,其它类型为interface时,判断为DTO
types/isType.go:126
↓ 4 callersFunctionIsStruct
IsStruct 是否为Struct
types/isType.go:76
↓ 4 callersFunctionNew
()
async/worker.go:16
↓ 4 callersFunctionPrintf
Printf 直接记录日志,没有日志等级
flog/print.go:116
↓ 4 callersMethodSetTableName
(tableName string)
test/container_interface_test.go:4
↓ 4 callersFunctionThrowException
ThrowException 抛出Exception异常
exception/throwException.go:6
↓ 4 callersFunctionThrowRefuseException
ThrowRefuseException 抛出RefuseException异常
exception/refuseException.go:11
↓ 4 callersFunctionToString
ToString 转换成string类型
parse/convert.go:299
↓ 4 callersMethodWait
Wait 阻塞等待执行完成
async/worker.go:66
↓ 4 callersMethodreplace
(key string)
configure/envConfig.go:70
↓ 4 callersMethodresolveField
获取对象
container/container.go:101
↓ 3 callersFunctionApiResponseLongError403
ApiResponseLongError403 接口调用失时返回的Json
core/apiResponseLong.go:26
↓ 3 callersFunctionErrorf
Errorf 打印Error日志
flog/print.go:73
↓ 3 callersFunctionGetCallerInfo
()
trace/traceDetail.go:172
↓ 3 callersFunctionGetListItemType
GetListItemType 获取List的元素Type
types/listType.go:70
↓ 3 callersFunctionGetRealType2
(val reflect.Type)
types/getType.go:25
↓ 3 callersMethodIgnore
()
trace/traceDetail.go:109
↓ 3 callersFunctionIsCollections
IsCollections 是否为集合
types/isType.go:71
↓ 3 callersFunctionIsDtoModel
IsDtoModel 当只有一个参数,且非集合类型,又是结构类型时,判断为DTO
types/isType.go:147
↓ 3 callersFunctionRegisterTransient
RegisterTransient 注册实例,临时生命周期
container/register.go:27
↓ 3 callersMethodStart
Start 开始运行
timingWheel/timingWheel.go:61
↓ 3 callersMethodToJson
ToJson 转成Json
core/apiResponse.go:35
↓ 3 callersFunctionUnmarshal
将json转换成对象(反序列化)
snc/json.go:28
↓ 3 callersFunctionanyToNumber
(source any, sourceKind reflect.Kind, defVal any, returnKind reflect.Kind)
parse/toNumber.go:5
next →1–100 of 589, ranked by callers