// // project : https://github.com/valyala/fasthttp // package main import ( "net/http" "github.com/gin-gonic/gin" ) func main() { // Create a Gin router with default middleware (logger and recovery) r := gin.Default() // Define a simple GET endpoint r.GET("/api/test/hello", func(c *gin.Context) { // Return JSON response c.JSON(http.StatusOK, gin.H{ "message": "Hello World !", }) }) // Start server on port 8080 (default) // Server will listen on 0.0.0.0:8080 (localhost:8080 on Windows) r.Run() }