go
梦想满天星辰
If you can’t fly, then run; if you can’t run, then walk; if you can’t walk, then crawl, but whatever you do, you have to keep moving forward.
展开
-
宝塔 nginx配置 wss
server{ listen 80; listen 443 ssl http2; server_name hwpt.doov5g.com; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/hwpt.doov5g.com; #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #er...原创 2022-05-15 10:43:58 · 854 阅读 · 0 评论 -
centos yum 安装golang
yum install -y epel-release yum install golang原创 2021-04-19 14:11:27 · 140 阅读 · 0 评论 -
gin框架安装和简单使用
先设置代理GO111MODULE=onGOPROXY=https://goproxy.cn,direct go mod init go-test[项目名称] go get github.com/gin-gonic/gin原创 2021-03-24 15:17:02 · 127 阅读 · 0 评论 -
gorm 连接mysql
package mainimport ( "fmt" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql")func main() { db, err := gorm.Open("mysql", "root:password@tcp(129.226.160.114:3306)/basic?charset=utf8") if err != nil { fmt.Println("数据库连接错误") } fm.原创 2021-03-24 13:51:03 · 89 阅读 · 0 评论