Skip to content
Draft
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
3 changes: 0 additions & 3 deletions appengine/go11x/helloworld/go.mod

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

runtime: go122
runtime: go123
3 changes: 3 additions & 0 deletions appengine/go12x/helloworld/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/GoogleCloudPlatform/appengine/go12x/helloworld

go 1.23.0
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START gae_go111_app]
// [START gae_go12x_app]

// Sample helloworld is an App Engine app.
package main

// [START gae_go111_import]
// [START gae_go12x_import]
import (
"fmt"
"log"
"net/http"
"os"
)

// [END gae_go111_import]
// [END gae_go12x_import]

// [START main_func]
// [START gae_main_func]

func main() {
http.HandleFunc("/", indexHandler)

// [START setting_port]
// [START gae_setting_port]
port := os.Getenv("PORT")
if port == "" {
port = "8080"
Expand All @@ -43,12 +43,12 @@ func main() {
if err := http.ListenAndServe(":"+port, nil); err != nil {
log.Fatal(err)
}
// [END setting_port]
// [END gae_setting_port]
}

// [END main_func]
// [END gae_main_func]

// [START indexHandler]
// [START gae_indexHandler]

// indexHandler responds to requests with our greeting.
func indexHandler(w http.ResponseWriter, r *http.Request) {
Expand All @@ -59,5 +59,5 @@ func indexHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, World!")
}

// [END indexHandler]
// [END gae_go111_app]
// [END gae_indexHandler]
// [END gae_go12x_app]
2 changes: 1 addition & 1 deletion appengine_flexible/helloworld/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ env: flex

runtime_config:
operating_system: 'ubuntu22'
runtime_version: 1.21
runtime_version: 1.23
# This sample incurs costs to run on the App Engine flexible environment.
# The settings below are to reduce costs during testing and are not appropriate
# for production use. For more information, see:
Expand Down
2 changes: 1 addition & 1 deletion appengine_flexible/helloworld/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/GoogleCloudPlatform/appengine_flexible/helloworld

go 1.22.0
go 1.23.0
2 changes: 1 addition & 1 deletion functions/functionsv2/helloworld/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/GoogleCloudPlatform/golang-samples/functions/functionsv2/helloworld

go 1.22.0
go 1.23.0

require github.com/GoogleCloudPlatform/functions-framework-go v1.8.1

Expand Down
6 changes: 3 additions & 3 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
go 1.22.7
go 1.23

toolchain go1.23.4
toolchain go1.23.6

use (
.
./aiplatform
./appengine
./appengine/go11x/cloudsql
./appengine/go11x/helloworld
./appengine/go11x/tasks/handle_task
./appengine/go11x/warmup
./appengine/go12x/helloworld
./appengine_flexible/analytics
./appengine_flexible/datastore
./appengine_flexible/go115_and_earlier
Expand Down
2 changes: 1 addition & 1 deletion run/helloworld/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Use the official Go image to create a binary.
# This is based on Debian and sets the GOPATH to /go.
# https://hub.docker.com/_/golang
FROM golang:1.21-bookworm as builder
FROM golang:1.23 as builder

# Create and change to the app directory.
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion run/helloworld/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/GoogleCloudPlatform/golang-samples/run/helloworld

go 1.22.0
go 1.23.0