Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ReallyCrash bool
ReallyCrash For testing, bypass HandleCrash.
Functions ¶
func ByteSize ¶
ByteSize returns a human readable byte string, of the format 10M, 12.5K, etc. The following units are available:
T Terabyte G Gigabyte M Megabyte K Kilobyte
the unit that would result in printing the smallest whole number is always chosen
func HandleCrash ¶
func HandleCrash()
HandleCrash simply catches a crash and logs an error. Meant to be called via defer.
func LogTraceback ¶
func LogTraceback(r interface{}, depth int, logger interface { Infof(fmt string, arg ...interface{}) })
LogTraceback prints traceback to given logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.