From e9f27bb967b2540a562ea0beb2cb04ce83c5c94b Mon Sep 17 00:00:00 2001 From: a Date: Tue, 30 Jul 2024 16:11:50 -0500 Subject: [PATCH] update deps --- go.mod | 12 ++++++------ go.sum | 8 ++++++++ main.go | 2 +- {flagset => pkg/flagset}/flags.go | 0 {pprofweb => pkg/pprofweb}/page.go | 0 {pprofweb => pkg/pprofweb}/pprofweb.go | 2 +- {webserver => pkg/webserver}/pprofweb.go | 2 +- 7 files changed, 17 insertions(+), 9 deletions(-) rename {flagset => pkg/flagset}/flags.go (100%) rename {pprofweb => pkg/pprofweb}/page.go (100%) rename {pprofweb => pkg/pprofweb}/pprofweb.go (99%) rename {webserver => pkg/webserver}/pprofweb.go (95%) diff --git a/go.mod b/go.mod index c2ab3c4..227ea9f 100644 --- a/go.mod +++ b/go.mod @@ -1,19 +1,19 @@ module tuxpa.in/a/pprofweb -go 1.21.4 +go 1.22.0 -toolchain go1.22.0 +toolchain go1.22.5 require ( - gfx.cafe/util/go v1.10.0 + gfx.cafe/util/go v1.13.0 github.com/alecthomas/kong v0.9.0 - github.com/go-chi/chi/v5 v5.0.12 - github.com/google/pprof v0.0.0-20240528025155-186aa0362fba + github.com/go-chi/chi/v5 v5.1.0 + github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 github.com/rs/xid v1.5.0 github.com/spf13/afero v1.11.0 ) require ( github.com/ianlancetaylor/demangle v0.0.0-20240312041847-bd984b5ce465 // indirect - golang.org/x/text v0.15.0 // indirect + golang.org/x/text v0.16.0 // indirect ) diff --git a/go.sum b/go.sum index 056fcc0..3ef246a 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ gfx.cafe/util/go v1.10.0 h1:2J2QK3lBm9lZcjlQqWCDaR+SNNSgiT/yXdRH8PenY6o= gfx.cafe/util/go v1.10.0/go.mod h1:xzge01gF6zKOM3VztFGWuFlmlFX00pPkonZ3YU7NRSU= +gfx.cafe/util/go v1.13.0 h1:ZNBFsHVKx3Nspb6l1MTwsj/lnV1M+0AhvlHbjtfj6s0= +gfx.cafe/util/go v1.13.0/go.mod h1:69P+MuE7Bwz69cVgCTMG4adySzirioh3X5IFpE6MNcY= github.com/alecthomas/assert/v2 v2.6.0 h1:o3WJwILtexrEUk3cUVal3oiQY2tfgr/FHWiz/v2n4FU= github.com/alecthomas/assert/v2 v2.6.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= github.com/alecthomas/kong v0.9.0 h1:G5diXxc85KvoV2f0ZRVuMsi45IrBgx9zDNGNj165aPA= @@ -8,8 +10,12 @@ github.com/alecthomas/repr v0.4.0 h1:GhI2A8MACjfegCPVq9f1FLvIBS+DrQ2KQBFZP1iFzXc github.com/alecthomas/repr v0.4.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/go-chi/chi/v5 v5.0.12 h1:9euLV5sTrTNTRUU9POmDUvfxyj6LAABLUcEWO+JJb4s= github.com/go-chi/chi/v5 v5.0.12/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw= +github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= github.com/google/pprof v0.0.0-20240528025155-186aa0362fba h1:ql1qNgCyOB7iAEk8JTNM+zJrgIbnyCKX/wdlyPufP5g= github.com/google/pprof v0.0.0-20240528025155-186aa0362fba/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= +github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8 h1:FKHo8hFI3A+7w0aUQuYXQ+6EN5stWmeY/AZqtM8xk9k= +github.com/google/pprof v0.0.0-20240727154555-813a5fbdbec8/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= github.com/hexops/gotextdiff v1.0.3 h1:gitA9+qJrrTCsiCl7+kh75nPqQt1cx4ZkudSTLoUqJM= github.com/hexops/gotextdiff v1.0.3/go.mod h1:pSWU5MAI3yDq+fZBTazCSJysOMbxWL1BSow5/V2vxeg= github.com/ianlancetaylor/demangle v0.0.0-20240312041847-bd984b5ce465 h1:KwWnWVWCNtNq/ewIX7HIKnELmEx2nDP42yskD/pi7QE= @@ -20,3 +26,5 @@ github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= diff --git a/main.go b/main.go index 9164e16..74259b7 100644 --- a/main.go +++ b/main.go @@ -7,8 +7,8 @@ import ( "os/signal" "syscall" - "tuxpa.in/a/pprofweb/cli" "github.com/alecthomas/kong" + "tuxpa.in/a/pprofweb/cli" ) func main() { diff --git a/flagset/flags.go b/pkg/flagset/flags.go similarity index 100% rename from flagset/flags.go rename to pkg/flagset/flags.go diff --git a/pprofweb/page.go b/pkg/pprofweb/page.go similarity index 100% rename from pprofweb/page.go rename to pkg/pprofweb/page.go diff --git a/pprofweb/pprofweb.go b/pkg/pprofweb/pprofweb.go similarity index 99% rename from pprofweb/pprofweb.go rename to pkg/pprofweb/pprofweb.go index 0b9f524..f34c35e 100644 --- a/pprofweb/pprofweb.go +++ b/pkg/pprofweb/pprofweb.go @@ -14,11 +14,11 @@ import ( "time" "gfx.cafe/util/go/generic" - "tuxpa.in/a/pprofweb/flagset" "github.com/go-chi/chi/v5" "github.com/google/pprof/driver" "github.com/rs/xid" "github.com/spf13/afero" + "tuxpa.in/a/pprofweb/pkg/flagset" ) type Config struct { diff --git a/webserver/pprofweb.go b/pkg/webserver/pprofweb.go similarity index 95% rename from webserver/pprofweb.go rename to pkg/webserver/pprofweb.go index 2fce54a..9e8a63f 100644 --- a/webserver/pprofweb.go +++ b/pkg/webserver/pprofweb.go @@ -5,10 +5,10 @@ import ( "net/http" "os" - "tuxpa.in/a/pprofweb/pprofweb" "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/spf13/afero" + "tuxpa.in/a/pprofweb/pkg/pprofweb" ) func main() {