![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
文章平均质量分 91
酒窝写代码
须非常努力,才毫不费力。
展开
-
go学习(一) mac和linux环境搭建及简单运行
mac和linux安装go编译器及简单运行原创 2023-02-07 10:25:28 · 1473 阅读 · 1 评论 -
go交叉编译
go交叉编译Windows 下编译Linux 64位可执行程序:SET CGO_ENABLED=0 SET GOOS=linux SET GOARCH=amd64go build filename.goCGO: 交叉编译不支持 CGO 所以要禁用它GOOS: 目标平台的操作系统(darwin、freebsd、linux、windows)GOARCH: 目标平台的处理器架构...原创 2019-03-05 16:38:58 · 598 阅读 · 0 评论 -
http server
package mainimport ( "net/http" "fmt")func Indexhandler(w http.ResponseWriter,r *http.Request) { fmt.Fprintln(w,"hello world") //fmt.Fprintln(w,r.PostFormValue("name"))//post传参 //fmt.Fprintln...原创 2019-03-06 15:10:54 · 114 阅读 · 0 评论 -
gorm快速使用
gorm安装,快速使用创建,修改,查询,删除原创 2019-03-04 11:48:16 · 776 阅读 · 0 评论