Gin 基础 :

Gin 的hello world :

package main

import (
    "github.com/gin-gonic/gin"
    "net/http"
)
func main()  {
    engine := gin.Default()
    engine.GET("/", func(context *gin.Context) {
        context.String(http.StatusOK,"hello world!")
    })
    engine.Run()
}
View Code

相关文章:

  • 2021-11-12
  • 2022-03-08
  • 2022-12-23
  • 2022-02-21
  • 2021-12-21
  • 2021-07-24
  • 2021-08-25
  • 2021-06-05
猜你喜欢
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案