Skip to content

Commit

Permalink
Update Go to 1.20 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shpota committed Jun 30, 2023
1 parent 832a573 commit 4f6c725
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/shpota/goxygen

go 1.19
go 1.20
12 changes: 6 additions & 6 deletions static/generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
FROM golang:1.20-alpine3.16 AS GO_BUILD
RUN apk update && apk add build-base
COPY server /server
WORKDIR /server
Expand Down Expand Up @@ -1024,7 +1024,7 @@ func (m MongoDB) GetTechnologies() ([]*model.Technology, error) {
`,
"mongo.server/go.mod": `module project-name
go 1.19
go 1.20
require go.mongodb.org/mongo-driver v1.9.0
Expand Down Expand Up @@ -1134,7 +1134,7 @@ COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
FROM golang:1.20-alpine3.16 AS GO_BUILD
COPY server /server
WORKDIR /server
RUN go build -o /go/bin/server
Expand Down Expand Up @@ -1292,7 +1292,7 @@ func (d MySQLDB) GetTechnologies() ([]*model.Technology, error) {
`,
"mysql.server/go.mod": `module project-name
go 1.19
go 1.20
require github.com/go-sql-driver/mysql v1.6.0
`,
Expand Down Expand Up @@ -1338,7 +1338,7 @@ COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
FROM golang:1.20-alpine3.16 AS GO_BUILD
COPY server /server
WORKDIR /server
RUN go build -o /go/bin/server
Expand Down Expand Up @@ -1493,7 +1493,7 @@ func (d PostgresDB) GetTechnologies() ([]*model.Technology, error) {
`,
"postgres.server/go.mod": `module project-name
go 1.19
go 1.20
require github.com/lib/pq v1.10.4
`,
Expand Down
2 changes: 1 addition & 1 deletion templates/mongo.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build

FROM golang:1.19.0-alpine3.16 AS GO_BUILD
FROM golang:1.20-alpine3.16 AS GO_BUILD
RUN apk update && apk add build-base
COPY server /server
WORKDIR /server
Expand Down
2 changes: 1 addition & 1 deletion templates/mongo.server/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module project-name

go 1.19
go 1.20

require go.mongodb.org/mongo-driver v1.9.0

Expand Down
2 changes: 1 addition & 1 deletion templates/mysql.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build

FROM golang:1.19.0-alpine3.16 AS GO_BUILD
FROM golang:1.20-alpine3.16 AS GO_BUILD
COPY server /server
WORKDIR /server
RUN go build -o /go/bin/server
Expand Down
2 changes: 1 addition & 1 deletion templates/mysql.server/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module project-name

go 1.19
go 1.20

require github.com/go-sql-driver/mysql v1.6.0
2 changes: 1 addition & 1 deletion templates/postgres.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COPY webapp /webapp
WORKDIR /webapp
RUN npm install && npm run build

FROM golang:1.19.0-alpine3.16 AS GO_BUILD
FROM golang:1.20-alpine3.16 AS GO_BUILD
COPY server /server
WORKDIR /server
RUN go build -o /go/bin/server
Expand Down
2 changes: 1 addition & 1 deletion templates/postgres.server/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module project-name

go 1.19
go 1.20

require github.com/lib/pq v1.10.4

0 comments on commit 4f6c725

Please sign in to comment.