Skip to content

Instantly share code, notes, and snippets.

@cn007b
Last active November 25, 2018 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cn007b/a574d96069513c39aea709ce1598c47b to your computer and use it in GitHub Desktop.
Save cn007b/a574d96069513c39aea709ce1598c47b to your computer and use it in GitHub Desktop.
eop - Implementation2 controller
// 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