鹿成

Results 9 comments of 鹿成

// update 2019/09/04 wxs.GET("/call", wx.WxCall) wxs.POST("/call", wx.WxCall) func WxCall(c *gin.Context) { r := c.Request w := c.Writer msgServer.ServeHTTP(w, r, nil) } // 文档中token验证是GET请求, 事件、文本、扫码等接收却是POST请求 // 放同一个入口超奇怪 // 或者更好的方式?请告知

1.go 1.12 版本go mod需要设置个GOPROXY[一些依赖在国外], go 1.13不用, 建议用阿里的`export GOPROXY=https://mirrors.aliyun.com/goproxy/`(go 1.13官方的还不是太稳定) 2.聊天:websocket,客户端和服务端建立websocket, [核心代码](https://github.com/dreamlu/deercoder-chat/blob/master/api/controllers/chat/chatWs.go)

这个这个.... 学习go modules.后(go mod tidy) 1.新建数据库deercoder-chat,导入sql 2. ./consul.sh 3.运行每个模块下../run.sh (访问http://localhost:8500, 查看各个模块运行状态) 4....... ps: docker 模式下需要运行./devMode.sh (先修改脚本中的devMode=prod), 本地开发不需要

I use this project, master branch: https://github.com/flipped-aurora/gin-vue-admin cd server go mod tidy ` go install github.com/swaggo/swag/cmd/[email protected] swag init or go install github.com/swaggo/swag/cmd/[email protected] swag init ` then, I met this bug...

> I use this project, master branch: https://github.com/flipped-aurora/gin-vue-admin > cd server > go mod tidy > > ` go install github.com/swaggo/swag/cmd/[email protected] swag init or > > go install github.com/swaggo/swag/cmd/[email protected] swag...

安全, 因为没有并发写的情况 本质上是用的就是数组来模拟记录所有连接client, 各自启动一个新的线程来独立监听, 根据id标记客户端,没有线程交叉写的情况

随意用,最好可以指明来源,感谢~

issue like [3919](https://github.com/gin-gonic/gin/issues/3919) **get request** **shoudbuildquey** has this problem

@JimChenWYU url not shoud add "", this error happened before func (t *CTime) UnmarshalJSON(b []byte) error {xxx}