Tobias 1c36707eab
Some checks failed
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Failing after 8m11s
new stuff
2025-08-14 18:36:08 +02:00

40 lines
482 B
Go

package main
import (
"fmt"
//"log"
"net/http"
//"os"
//"time"
//"slices"
//jwt "github.com/appleboy/gin-jwt/v2"
"github.com/gin-gonic/gin"
)
func main() {
var inc = func(x int) int { return x + 1}
fmt.Println("Hello, World!")
fmt.Println(inc(1))
r := gin.Default()
r.GET("/ping", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "pong",
})
})
r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}