Skip to content

Instantly share code, notes, and snippets.

@proclaim
Created June 11, 2018 07:35
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 proclaim/6cdbe33cb22427a352d2e11a73e48965 to your computer and use it in GitHub Desktop.
Save proclaim/6cdbe33cb22427a352d2e11a73e48965 to your computer and use it in GitHub Desktop.
func handle(f func(*gin.Context) (interface{}, int, error)) func(*gin.Context) {
return func(gc *gin.Context) {
// very complex code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment