Skip to content

Commit e58d203

Browse files
committed
feat: update go version
1 parent 5114c99 commit e58d203

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

assets/install-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
要求使用go 1.22以上版本[https://studygolang.com/dl](https://studygolang.com/dl)
2+
要求使用go 1.23以上版本[https://studygolang.com/dl](https://studygolang.com/dl)
33

44
> 注:如果不能科学上网,获取github的库可能会遇到超时失败问题,建议设置为国内代理,执行命令 **go env -w GOPROXY=https://goproxy.cn,direct**
55

assets/install-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
Recommended to use go version 1.22 or above, [https://go.dev/doc/install](https://go.dev/doc/install)
2+
Recommended to use go version 1.23 or above, [https://go.dev/doc/install](https://go.dev/doc/install)
33

44
<br>
55

cmd/sponge/commands/generate/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
)
2828

2929
const (
30-
defaultGoModVersion = "go 1.22"
30+
defaultGoModVersion = "go 1.23.0"
3131

3232
// TplNameSponge name of the template
3333
TplNameSponge = "sponge"

scripts/build/Dockerfile_build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Need to package the code first `tar zcf serverNameExample.tar.gz $(ls)` and move it to the same directory as Dokerfile
22

33
# Compile the go code, you can specify the golang version
4-
FROM golang:1.22-alpine as build
4+
FROM golang:1.23-alpine as build
55
COPY . /go/src/serverNameExample
66
WORKDIR /go/src/serverNameExample
77
RUN tar zxf serverNameExample.tar.gz

scripts/build/Dockerfile_test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Need to package the code first `tar zcf serverNameExample.tar.gz $(ls)` and move it to the same directory as Dokerfile
22
# rpc server source code, used to test rpc methods
3-
FROM golang:1.22-alpine
3+
FROM golang:1.23-alpine
44
MAINTAINER zhufuyi "g.zhufuyi@gmail.com"
55

66
# go test dependency packages

0 commit comments

Comments
 (0)