diff --git a/README.md b/README.md index f42bcf2..6be8002 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/scripts/generate-sdk/languages/go.sh b/scripts/generate-sdk/languages/go.sh index c8e451c..10d9528 100644 --- a/scripts/generate-sdk/languages/go.sh +++ b/scripts/generate-sdk/languages/go.sh @@ -8,7 +8,7 @@ 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" @@ -16,7 +16,7 @@ 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 diff --git a/templates/go/go.mod.mustache b/templates/go/go.mod.mustache index 9db6c4d..4d781d7 100644 --- a/templates/go/go.mod.mustache +++ b/templates/go/go.mod.mustache @@ -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