mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
23 lines
258 B
Go
23 lines
258 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
var Router *gin.Engine
|
|
|
|
func main() {
|
|
r := gin.Default()
|
|
r.GET("/", func(c *gin.Context) {
|
|
c.JSON(200, gin.H{
|
|
"message": "Hello world!",
|
|
})
|
|
})
|
|
|
|
fmt.Println("Hello from Go")
|
|
|
|
r.Run()
|
|
}
|