
go
aganliang
不能记录一下吗
展开
-
gin 入门
go get -u github.com/gin-gonic/gin在现有mod项目中,impot gin即可package mainimport ( "net/http" "github.com/gin-gonic/gin")func main() { r := gin.Default() // This handler will match /user/john but will not match /user/ or /user r.GET("/user/:nam...原创 2022-04-10 23:21:04 · 227 阅读 · 0 评论 -
GO 安装部署(基于aarch64)
下载 https://golang.google.cn/dl/下载这个二进制包 go1.17.5.linux-arm64.tar.gz 这才是64位的# 把go 解压到 /usr/local/目录下tar -zxf go1.17.5.linux-arm64.tar.gz -C /usr/local切换到/home目录,并创建gopath文件夹,后面开发和编译过程中用go get安装第三方包会用到cd /homemkdir gopathvim /etc/profile#gola..原创 2021-12-26 16:51:33 · 3889 阅读 · 0 评论