Documentation ¶
Index ¶
- func DecodeId(str string) []byte
- func F(b []byte) string
- func FileIsExist(name string) bool
- func GenLogId() string
- func GenNonce() string
- func GenPseudoUniqId() uint64
- func GetCurExecDir() string
- func GetCurFileDir() string
- func GetFuncCall(callDepth int) (string, string)
- func GetHostName() string
- func PathExists(path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileIsExist ¶
FileExists reports whether the named file or directory exists.
func GenLogId ¶
func GenLogId() string
Generate log id, Not strictly unique But the probability of repetition is very low Run unit test verification
func GenPseudoUniqId ¶
func GenPseudoUniqId() uint64
Generate unique id, Not strictly unique But the probability of repetition is very low Run unit test verification
func GetFuncCall ¶
Get call method by runtime.Caller
func GetHostName ¶
func GetHostName() string
func PathExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.