From 19b1be165975bb9de0f34b401faf873adecb87ee Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Wed, 14 Aug 2024 10:29:05 +0200 Subject: [PATCH] updated to go version 1.23 --- README.md | 11 ++++++++++- go.mod | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 34949a6..6daa53f 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,19 @@ * Environment -Go version 1.21 + +At least go version 1.21 so that it automatically downloads the correct version ``` go install github.com/a-h/templ/cmd/templ@latest go install golang.org/x/pkgsite/cmd/pkgsite@latest ``` + +# Profiling + +``` +go tool pprof -http:8081 http://localhost:8000/debug/pprof/profile?seconds=30 +go tool pprof -http:8081 http://localhost:8000/debug/pprof/heap +go tool pprof -http:8081 http://localhost:8000/debug/pprof/goroutine +``` diff --git a/go.mod b/go.mod index f3e4bb0..2da9462 100755 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module git.wamblee.org/converge -go 1.22.5 +go 1.23.0 require ( github.com/ActiveState/termtest/conpty v0.5.0 @@ -11,6 +11,7 @@ require ( github.com/gorilla/websocket v1.5.3 github.com/hashicorp/yamux v0.1.1 github.com/pkg/sftp v1.13.6 + github.com/prometheus/client_golang v1.19.1 golang.org/x/crypto v0.25.0 golang.org/x/term v0.22.0 ) @@ -21,7 +22,6 @@ require ( github.com/beorn7/perks v1.0.1 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/kr/fs v0.1.0 // indirect - github.com/prometheus/client_golang v1.19.1 // indirect github.com/prometheus/client_model v0.5.0 // indirect github.com/prometheus/common v0.48.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect