Skip to content

Instantly share code, notes, and snippets.

@cn007b
Last active September 24, 2018 20:16
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/d66707950b62df4be61f6e21d4deedf1 to your computer and use it in GitHub Desktop.
Save cn007b/d66707950b62df4be61f6e21d4deedf1 to your computer and use it in GitHub Desktop.
eop - Implementation1 controller
// controller
func SignUp(username string) {
msg := "ok"
if err := service.SignUp(username); err != nil {
msg = err.Error()
}
fmt.Printf("[error] SignUp: %s \n", msg)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment