diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-21 01:49:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-21 01:49:36 +0900 |
| commit | 766dd89ffa198a315b043230f904636461c41efe (patch) | |
| tree | 163290a35109da0cae36c6453fc4b56529cf4d54 /internal/comp.go | |
| parent | 699c19e972a3cbcc714403aedffcb5ff74386cfc (diff) | |
internal: clean up build strings
These names are less ambiguous and should be understandable without reading the source code.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/comp.go')
| -rw-r--r-- | internal/comp.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/internal/comp.go b/internal/comp.go deleted file mode 100644 index 28ee6224..00000000 --- a/internal/comp.go +++ /dev/null @@ -1,17 +0,0 @@ -package internal - -const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID" - -var ( - version = compPoison -) - -// checkComp validates string value set at compile time. -func checkComp(s string) (string, bool) { return s, s != compPoison && s != "" } - -func Version() string { - if v, ok := checkComp(version); ok { - return v - } - return "impure" -} |
