Skip to content

Instantly share code, notes, and snippets.

@PxyUp
Created October 9, 2019 21:49
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 PxyUp/fe69e6725a516b001d85f8d3a1282f36 to your computer and use it in GitHub Desktop.
Save PxyUp/fe69e6725a516b001d85f8d3a1282f36 to your computer and use it in GitHub Desktop.
Router in main app
package router
import (
"github.com/gin-gonic/gin"
"go_monogrepo/packages/shared/handlers/health"
)
func GetEngine() *gin.Engine {
r := gin.New()
r.Use(gin.Recovery())
r.GET("/", health.Health("Main app"))
return r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment