Documentation ¶
Overview ¶
Package util provides utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchGoOrErr ¶
BatchGoOrErr starts multiple goroutines and returns the error once a goroutine stops with an error. CAUTION: Other goroutines aren't and won't be closed when a goroutine stops with an error. In other words, those still-running goroutines "leak" It is safe only when the error returned by BatchGoOrEr will eventually quit the program.
func GetFuncName ¶
func GetFuncName(i interface{}) string
GetFuncName returns the name of the given function Reference: https://stackoverflow.com/a/7053871/12023612
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.