go webrtc - 1 go基本概念
安装
修改 go.env 可设置的变量
GOPROXY=https://goproxy.cn,direct
GOCACHE=D:\Language\Go\go-build
GOMODCACHE=D:\Language\Go\pkg\mod
GoLand 无法debug
1, cmd 运行
go install github.com/go-delve/delve/cmd/dlv@latest
2, 会安装到
C:\Users\Administrator\go\bin\dlv.exe
3, 替换 GoLand IDE 的目录
D:\Jetbrains\GoLand\plugins\go\lib\dlv\windows\dlv.exe
mod
版本管理器,go1.3之后 自带
# 初始化目录
go mod init 目录# 对其依赖,刷新
go mod tidy# 下载依赖
go get 依赖包名# 下载并更新依赖
go get -u 依赖包名
go相关开发框架
# orm框架
go get gorm.io/gorm# 驱动
go get gorm.io/driver/mysql# webrtc 框架
go get github.com/pions/webrtc# webrtc指定版本
go get github.com/pion/webrtc/v3@v3.3.6 # web 框架
go get github.com/gin-gonic/gin# uuid
go get github.com/satori/go.uuid# jwt
go get github.com/dgrijalva/jwt-go