99cd1366f8
- docker - golang Signed-off-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
19 lines
308 B
Go
19 lines
308 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func main() {
|
|
// gin.SetMode(gin.ReleaseMode)
|
|
|
|
server := gin.Default()
|
|
|
|
server.GET("/", func(ctx *gin.Context) {
|
|
ctx.JSON(http.StatusOK, gin.H{"data": "Hi! I'm the Gitea-SonarQube-PR bot. At your service."})
|
|
})
|
|
|
|
server.Run()
|
|
}
|