使用gin框架搭了个项目骨架,本地测试结果如下,请大佬们帮我评估下测试结果。感谢🙏
- 测试机器配置
- 测试代码
health.go
package health
import (
"github.com/gin-gonic/gin"
"net/http"
)
// HealthCheck shows `OK` as the ping-pong result.
func Index(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"message": "OK"})
}
- 测试结果