feat: update go version

This commit is contained in:
zhuyasen 2025-04-12 18:32:39 +08:00
parent 5114c99d31
commit e58d203944
5 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
要求使用go 1.22以上版本: [https://studygolang.com/dl](https://studygolang.com/dl)
要求使用go 1.23以上版本: [https://studygolang.com/dl](https://studygolang.com/dl)
> 注如果不能科学上网获取github的库可能会遇到超时失败问题建议设置为国内代理执行命令 **go env -w GOPROXY=https://goproxy.cn,direct**

View File

@ -1,5 +1,5 @@
Recommended to use go version 1.22 or above, [https://go.dev/doc/install](https://go.dev/doc/install)
Recommended to use go version 1.23 or above, [https://go.dev/doc/install](https://go.dev/doc/install)
<br>

View File

@ -27,7 +27,7 @@ import (
)
const (
defaultGoModVersion = "go 1.22"
defaultGoModVersion = "go 1.23.0"
// TplNameSponge name of the template
TplNameSponge = "sponge"

View File

@ -1,7 +1,7 @@
# Need to package the code first `tar zcf serverNameExample.tar.gz $(ls)` and move it to the same directory as Dokerfile
# Compile the go code, you can specify the golang version
FROM golang:1.22-alpine as build
FROM golang:1.23-alpine as build
COPY . /go/src/serverNameExample
WORKDIR /go/src/serverNameExample
RUN tar zxf serverNameExample.tar.gz

View File

@ -1,6 +1,6 @@
# Need to package the code first `tar zcf serverNameExample.tar.gz $(ls)` and move it to the same directory as Dokerfile
# rpc server source code, used to test rpc methods
FROM golang:1.22-alpine
FROM golang:1.23-alpine
MAINTAINER zhufuyi "g.zhufuyi@gmail.com"
# go test dependency packages