mirror of
https://github.com/rjNemo/docker_examples
synced 2026-06-06 02:26:45 +00:00
11 lines
212 B
Go
11 lines
212 B
Go
package main
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func main() {
|
|
router := gin.Default()
|
|
router.GET("/", func(c *gin.Context) {
|
|
c.JSON(200, gin.H{"message": "pong"})
|
|
})
|
|
router.Run(":80") // http://0.0.0.0/
|
|
}
|