aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/comp.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/comp.go')
-rw-r--r--internal/comp.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/comp.go b/internal/comp.go
new file mode 100644
index 00000000..e7064db0
--- /dev/null
+++ b/internal/comp.go
@@ -0,0 +1,12 @@
+package internal
+
+const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"
+
+var (
+ Version = compPoison
+)
+
+// Check validates string value set at compile time.
+func Check(s string) (string, bool) {
+ return s, s != compPoison && s != ""
+}