go api框架搭建

###主要涉及的内容: -API开发框架`gin-gonic` -ORM框架`gorm` -Go语言`mysql`驱动 ###依赖包 框架引入gin ```bash $gogetgithub.com/gin-gonic/gin@latest $goget-ugithub.com/jinzhu/gorm@latest $gogetgithub.com/go-sql-driver/mysql@l...
分类 go 标签 go by Nigel 2021-03-22 14:25:37

go vscode的settings.json配置

```json { "go.goroot":"c:/go",//通过goenv查看 "go.gopath":"E:/Projects/go/workspace", "go.inferGopath":true, "go.toolsGopath":"E:/Projects/go/workspace", "window.zoomLevel":0, "git.autofetch":true, "term...
分类 go 标签 go by Nigel 2021-03-22 14:25:37

golang环境搭建

###golang编译器 *[发行版下载地址](https://studygolang.com/dl) *[官方安装说明](http://docscn.studygolang.com/doc/install) ```bash tar-C/usr/local-xzfgo$VERSION.$OS-$ARCH.tar.gz#解压go二进制文件 echo"exportPATH=\$PATH:/usr...
分类 go 标签 go by Nigel 2021-03-22 14:25:37