aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-01-19 11:57:03 -0500
committerXe Iaso <me@xeiaso.net>2025-01-19 11:57:03 -0500
commit18b269c8799a785ae376eb012f510f9eccae3c57 (patch)
tree746b657b2d69f1c4ae391f4700d40696857dff90 /doc.go
parent9a57488137f156835a45c1ce2246af6c946793bb (diff)
downloadx-18b269c8799a785ae376eb012f510f9eccae3c57.tar.xz
x-18b269c8799a785ae376eb012f510f9eccae3c57.zip
xess: minify the CSS and inline all assets
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc.go b/doc.go
index d79f36e..371710d 100644
--- a/doc.go
+++ b/doc.go
@@ -1,2 +1,22 @@
// Package x is a hack
package x
+
+import (
+ "github.com/prometheus/client_golang/prometheus"
+ "github.com/prometheus/client_golang/prometheus/promauto"
+)
+
+var (
+ Version = "devel"
+
+ gauge *prometheus.GaugeVec
+)
+
+func init() {
+ gauge = promauto.NewGaugeVec(prometheus.GaugeOpts{
+ Name: "within_website_x_version",
+ Help: "The version of within.website/x in use.",
+ }, []string{"version"})
+
+ gauge.WithLabelValues(Version).Inc()
+}