Skip to content

Commit

Permalink
upgrade go and modules (#6)
Browse files Browse the repository at this point in the history
* go get -u ./... && go mod tidy

* example: go get -u ./... && go mod tidy

* fix deprecated warning
  • Loading branch information
ledmonster authored Jan 20, 2025
1 parent f7dcabc commit ebd2a56
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 3,225 deletions.
4 changes: 2 additions & 2 deletions example/logging/function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package function

import (
"fmt"
"io/ioutil"
"io"
"log"
"net/http"
"net/http/httptest"
Expand All @@ -19,7 +19,7 @@ func TestExampleLogging(t *testing.T) {
if err != nil {
log.Fatal(err)
}
greeting, err := ioutil.ReadAll(res.Body)
greeting, err := io.ReadAll(res.Body)
res.Body.Close()
if err != nil {
log.Fatal(err)
Expand Down
40 changes: 38 additions & 2 deletions example/logging/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,43 @@
module github.com/groove-x/cloudfunctions/example/logging

go 1.13
go 1.22.0

require github.com/groove-x/cloudfunctions v0.0.0-20200115112730-1bcff9cbd315
toolchain go1.23.4

require github.com/groove-x/cloudfunctions v0.2.5

require (
cloud.google.com/go v0.118.0 // indirect
cloud.google.com/go/auth v0.14.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.7 // indirect
cloud.google.com/go/compute/metadata v0.6.0 // indirect
cloud.google.com/go/logging v1.13.0 // indirect
cloud.google.com/go/longrunning v0.6.4 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.14.1 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect
go.opentelemetry.io/otel v1.34.0 // indirect
go.opentelemetry.io/otel/metric v1.34.0 // indirect
go.opentelemetry.io/otel/trace v1.34.0 // indirect
golang.org/x/crypto v0.32.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/oauth2 v0.25.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/text v0.21.0 // indirect
golang.org/x/time v0.9.0 // indirect
google.golang.org/api v0.217.0 // indirect
google.golang.org/genproto v0.0.0-20250115164207-1a7da9e5054f // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250115164207-1a7da9e5054f // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
google.golang.org/grpc v1.69.4 // indirect
google.golang.org/protobuf v1.36.3 // indirect
)

replace github.com/groove-x/cloudfunctions => ../../
Loading

0 comments on commit ebd2a56

Please sign in to comment.