Last active
November 25, 2018 23:19
-
-
Save cn007b/a574d96069513c39aea709ce1598c47b to your computer and use it in GitHub Desktop.
eop - Implementation2 controller
This file contains 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 characters
// controller | |
func SignUp(username string) { | |
defer recover.All(func(err interface{}) { | |
fmt.Printf("[pro_panic] SignUp: %s \n", err) | |
}) | |
service.MustSignUp(username) | |
fmt.Printf("[pro_panic] SignUp: %s \n", "ok") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment