17 lines
220 B
Go
17 lines
220 B
Go
package hello
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Ping(ctx *gin.Context) {
|
|
ctx.JSON(http.StatusOK, map[string]any{
|
|
"PING": "PONG",
|
|
"TIMESEQ": time.Now().Nanosecond(),
|
|
})
|
|
return
|
|
}
|