![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
golang
律动的波纹
律动的波纹
展开
-
GO docker 部署
GO docker 部署编辑Dockerfile第一种 直接编译执行第二种 配置docker-compose.yml ,再执行 编辑Dockerfile FROM golang:1.15 AS builder ENV GO111MODULE=on \ GOPROXY=https://goproxy.cn,direct \ CGO_ENABLED=0 \ GOARCH=amd64 # 移动到工作目录:/build WORKDIR /build COPY go.mod . COPY原创 2020-09-30 10:34:52 · 219 阅读 · 0 评论 -
golang 中文处理
golang 中文处理查看字符串方式1方式2Golang 文本长度子字符串引用 查看字符串 方式1 const nihongo = "日本語" for index, runeValue := range nihongo { fmt.Printf("%#U starts at byte position %d\n", runeValue, index) } 方式2 const nihongo = "日本語" for i, w := 0, 0; i &原创 2020-09-29 19:52:44 · 710 阅读 · 0 评论