Last active
May 18, 2016 06:03
-
-
Save legendtkl/09caa1f6e63320a0a5a26b5ed4e9bcc9 to your computer and use it in GitHub Desktop.
Revisions
-
legendtkl renamed this gist
May 18, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
legendtkl created this gist
May 18, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ //error handle //when exit, print stack out func foo() { if err := recover(); err != nil { debug.PrintStack() log.Error("Error: ", err) }() }