mirror of https://github.com/zhufuyi/sponge
feat: update go version
This commit is contained in:
parent
5114c99d31
commit
e58d203944
|
@ -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**
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
defaultGoModVersion = "go 1.22"
|
||||
defaultGoModVersion = "go 1.23.0"
|
||||
|
||||
// TplNameSponge name of the template
|
||||
TplNameSponge = "sponge"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue