herald.go/main.go
Alex Grintsvayg 04ea7b5f0e
it begins
2021-03-18 16:12:48 -04:00

13 lines
252 B
Go

package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.Default()
r.GET("/ping", func(c *gin.Context) {
c.JSON(200, gin.H{
"message": "pong",
})
})
r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}