Skip to content

Instantly share code, notes, and snippets.

@naeemaei
Last active October 13, 2023 16:33
Show Gist options
  • Save naeemaei/1f40ce654467f00a89bc9247b657bc4a to your computer and use it in GitHub Desktop.
Save naeemaei/1f40ce654467f00a89bc9247b657bc4a to your computer and use it in GitHub Desktop.
Golang web api project gists
package routers
import (
"github.com/gin-gonic/gin"
"github.com/naeemaei/golang-clean-web-api/api/handlers"
)
func Health(r *gin.RouterGroup) {
handler := handlers.NewHealthHandler()
r.GET("/", handler.Health) // Call hanlder.Health method
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment