Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Recovery ¶
Recovery print input err value. If err is nil, we will try to call recover() to fetch value.
func RecoveryWithContext ¶
RecoveryWithContext print input err value with context's logger. If err is nil, we will try to call recover() to fetch value.
func UserHomeDir ¶
func UserHomeDir() string
UserHomeDir returns the current user's home directory. Panic if `os.UserHomeDir()` return an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.