diff options
| author | Xe Iaso <me@xeiaso.net> | 2025-01-19 11:57:03 -0500 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2025-01-19 11:57:03 -0500 |
| commit | 18b269c8799a785ae376eb012f510f9eccae3c57 (patch) | |
| tree | 746b657b2d69f1c4ae391f4700d40696857dff90 /doc.go | |
| parent | 9a57488137f156835a45c1ce2246af6c946793bb (diff) | |
| download | x-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.go | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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() +} |
