Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuildTS = "None" BuildHash = "None" )
Version information.
Functions ¶
func CurrentTimeStrAsLog ¶
func CurrentTimeStrAsLog() string
CurrentTimeStrAsLog return time format as "[2006/01/02 15:06:02.886 +08:00]"
func ErrorMustSame ¶
ErrorMustSame return error if both error not same
func FileExists ¶
FileExists checks if a file exists and is not a directory before we try using it to prevent further errors.
func FormatTimeStrAsLog ¶
FormatTimeStrAsLog format given time as as "[2006/01/02 15:06:02.886 +08:00]"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.