aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hsu/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/hsu/path.go')
-rw-r--r--cmd/hsu/path.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/cmd/hsu/path.go b/cmd/hsu/path.go
new file mode 100644
index 00000000..b4a7756a
--- /dev/null
+++ b/cmd/hsu/path.go
@@ -0,0 +1,21 @@
+package main
+
+import (
+ "log"
+ "path"
+)
+
+const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"
+
+var (
+ hmain = compPoison
+ fpkg = compPoison
+)
+
+func mustCheckPath(p string) string {
+ if p != compPoison && p != "" && path.IsAbs(p) {
+ return p
+ }
+ log.Fatal("this program is compiled incorrectly")
+ return compPoison
+}