Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Currently only generation of Go libraries are supported. The output is stored in

If you want to modify script or templates and you can run code locally.

Requires `Go 1.20` or higher.
Requires `Go 1.21` or higher.

1. Set up the project and tools by running
```
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-sdk/languages/go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ SDK_REPO_LOCAL_PATH="${ROOT_DIR}/sdk-repo-updated"

OAS_REPO=https://github.com/stackitcloud/stackit-api-specifications

SDK_GO_VERSION="1.18"
SDK_GO_VERSION="1.21"

SERVICES_FOLDER="${SDK_REPO_LOCAL_PATH}/services"
EXAMPLES_FOLDER="${SDK_REPO_LOCAL_PATH}/examples"
SCRIPTS_FOLDER="${SDK_REPO_LOCAL_PATH}/scripts"

GENERATOR_LOG_LEVEL="error" # Must be a Java log level (error, warn, info...)

SDK_GO_VERSION="1.18"
SDK_GO_VERSION="1.21"

generate_go_sdk() {
# Required parameters
Expand Down
2 changes: 1 addition & 1 deletion templates/go/go.mod.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module {{gitHost}}/{{gitUserId}}/{{gitRepoId}}/services{{#isGoSubmodule}}/{{packageName}}{{/isGoSubmodule}}

go 1.18
go 1.21

require (
{{gitHost}}/{{gitUserId}}/{{gitRepoId}}/core v0.15.1
Expand Down
Loading