# Functions
Contains 判读数组中是否包含特定字符串.
No description provided by the author
CurrentClock returns the current clock used by util package.
CurrentTickerCreator returns the current ticker creator used by util package.
CurrentTimeMillis Returns the current Unix timestamp in milliseconds.
No description provided by the author
CurrentTimeNano Returns the current Unix timestamp in nanoseconds.
CurrentTimerCreator 工具包返回当前的timer creator.
No description provided by the author
No description provided by the author
No description provided by the author
FormatDate formats Unix timestamp (ms) to date string.
FormatTimeMillis formats Unix timestamp (ms) to time string.
GetConfigString 获取服务配置信息.
GetHostName 获取服务hostname.
GetIP 获取服务名称.
IsBlank checks whether the given string is blank.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewTimer 新建timer.
Now returns the current local time.
No description provided by the author
No description provided by the author
SetClock sets the clock used by util package.
No description provided by the author
No description provided by the author
Sleep pauses the current goroutine for at least the duration d.
StartTimeTicker starts a background task that caches current timestamp per millisecond, which may provide better performance in high-concurrency scenarios.
String hashes a string to a unique hashcode.
Strings hashes a list of strings to a unique hashcode.
StrVal 获取变量的字符串值 浮点型 3.0将会转换成字符串3, "3" 非数值或字符类型的变量将会被转换成JSON格式字符串.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
MockClock is used for testing.
MockTicker is usually used for testing.
MockTickerCreator is used create MockTicker which is usually used for testing.
RealClock wraps some APIs of time package.
RealTicker wraps time.Ticker.
RealTickerCreator is used to create RealTicker which wraps time.Ticker.
RealTimer wraps time.Time.
RealTimerCreator is used to create RealTimer which wraps time.Time.
SliceHeader is a safe version of SliceHeader used within this project.
StringHeader is a safe version of StringHeader used within this project.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
Ticker interface encapsulates operations like time.Ticker.
TickerCreator is used to create Ticker.
Timer interface encapsulates operations like time.Timer.
TimerCreator 用户创建timer.