1、安装

go get -u github.com/gin-gonic/gin

2、在go.mod写入代码 :

require github.com/gin-gonic/gin v1.7.7

 

3、更新下mod包,test为项目名

go mod init test
go mod tidy

5、引入gin

import "github.com/gin-gonic/gin"

 

相关文章:

  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2022-01-24
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案