From 697372d81e782cb5e12be3f35024bacfed7a4c50 Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Wed, 31 Jul 2024 14:06:25 +0200 Subject: [PATCH] tutorials: Renamed for consistency + fixed tutorial code. (#1569) --- {tutorial => tutorials}/whatsup/.gitignore | 0 {tutorial => tutorials}/whatsup/ContribFest.pdf | Bin {tutorial => tutorials}/whatsup/Makefile | 0 {tutorial => tutorials}/whatsup/README.md | 0 {tutorial => tutorials}/whatsup/go.mod | 2 +- {tutorial => tutorials}/whatsup/go.sum | 0 .../whatsup/internal/acceptance_test.go | 0 {tutorial => tutorials}/whatsup/internal/common.go | 0 .../whatsup/internal/playground_test.go | 0 {tutorial => tutorials}/whatsup/main.go | 2 +- {tutorial => tutorials}/whatsup/reference/main.go | 2 +- 11 files changed, 3 insertions(+), 3 deletions(-) rename {tutorial => tutorials}/whatsup/.gitignore (100%) rename {tutorial => tutorials}/whatsup/ContribFest.pdf (100%) rename {tutorial => tutorials}/whatsup/Makefile (100%) rename {tutorial => tutorials}/whatsup/README.md (100%) rename {tutorial => tutorials}/whatsup/go.mod (97%) rename {tutorial => tutorials}/whatsup/go.sum (100%) rename {tutorial => tutorials}/whatsup/internal/acceptance_test.go (100%) rename {tutorial => tutorials}/whatsup/internal/common.go (100%) rename {tutorial => tutorials}/whatsup/internal/playground_test.go (100%) rename {tutorial => tutorials}/whatsup/main.go (98%) rename {tutorial => tutorials}/whatsup/reference/main.go (99%) diff --git a/tutorial/whatsup/.gitignore b/tutorials/whatsup/.gitignore similarity index 100% rename from tutorial/whatsup/.gitignore rename to tutorials/whatsup/.gitignore diff --git a/tutorial/whatsup/ContribFest.pdf b/tutorials/whatsup/ContribFest.pdf similarity index 100% rename from tutorial/whatsup/ContribFest.pdf rename to tutorials/whatsup/ContribFest.pdf diff --git a/tutorial/whatsup/Makefile b/tutorials/whatsup/Makefile similarity index 100% rename from tutorial/whatsup/Makefile rename to tutorials/whatsup/Makefile diff --git a/tutorial/whatsup/README.md b/tutorials/whatsup/README.md similarity index 100% rename from tutorial/whatsup/README.md rename to tutorials/whatsup/README.md diff --git a/tutorial/whatsup/go.mod b/tutorials/whatsup/go.mod similarity index 97% rename from tutorial/whatsup/go.mod rename to tutorials/whatsup/go.mod index 2e154b9..a331115 100644 --- a/tutorial/whatsup/go.mod +++ b/tutorials/whatsup/go.mod @@ -1,4 +1,4 @@ -module github.com/prometheus/client_golang/tutorial +module github.com/prometheus/client_golang/tutorials/whatsup go 1.20 diff --git a/tutorial/whatsup/go.sum b/tutorials/whatsup/go.sum similarity index 100% rename from tutorial/whatsup/go.sum rename to tutorials/whatsup/go.sum diff --git a/tutorial/whatsup/internal/acceptance_test.go b/tutorials/whatsup/internal/acceptance_test.go similarity index 100% rename from tutorial/whatsup/internal/acceptance_test.go rename to tutorials/whatsup/internal/acceptance_test.go diff --git a/tutorial/whatsup/internal/common.go b/tutorials/whatsup/internal/common.go similarity index 100% rename from tutorial/whatsup/internal/common.go rename to tutorials/whatsup/internal/common.go diff --git a/tutorial/whatsup/internal/playground_test.go b/tutorials/whatsup/internal/playground_test.go similarity index 100% rename from tutorial/whatsup/internal/playground_test.go rename to tutorials/whatsup/internal/playground_test.go diff --git a/tutorial/whatsup/main.go b/tutorials/whatsup/main.go similarity index 98% rename from tutorial/whatsup/main.go rename to tutorials/whatsup/main.go index b4252f3..5943eef 100644 --- a/tutorial/whatsup/main.go +++ b/tutorials/whatsup/main.go @@ -36,7 +36,7 @@ import ( "github.com/prometheus/client_golang/api" v1 "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/prometheus/client_golang/prometheus" - "github.com/prometheus/client_golang/tutorial/internal" + "github.com/prometheus/client_golang/tutorials/whatsup/internal" ) func main() { diff --git a/tutorial/whatsup/reference/main.go b/tutorials/whatsup/reference/main.go similarity index 99% rename from tutorial/whatsup/reference/main.go rename to tutorials/whatsup/reference/main.go index 3c41151..d7ac1c7 100644 --- a/tutorial/whatsup/reference/main.go +++ b/tutorials/whatsup/reference/main.go @@ -39,7 +39,7 @@ import ( "github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/promauto" "github.com/prometheus/client_golang/prometheus/promhttp" - "github.com/prometheus/client_golang/tutorial/internal" + "github.com/prometheus/client_golang/tutorials/whatsup/internal" ) func main() {