随笔分类 - Goland
Goland
摘要:Go —— gin 简单 MVC 地址 效果图 加载Html 注意需要绑定 define 或者 使用 gin 默认格式 Docker 文件编写 我这里使用的goctl 包生成的dockerfile ,https://go-zero.dev/cn/docs/goctl/goctl/ 这里生成的最小编译
阅读全文
摘要:客户端发送消息 并接收服务端消息 package main import ( "fmt" "net" ) func main() { // conn, err := net.Dial(`tcp`, ":8848") if err != nil { fmt.Println(`net dial err:
阅读全文