aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/hsu/path.go
blob: 53aa9d10fde23742067e79e7350b3c6c8ad313f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package main

import (
	"log"
	"path"
)

const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"

var (
	hmain = compPoison
)

func mustCheckPath(p string) string {
	if p != compPoison && p != "" && path.IsAbs(p) {
		return p
	}
	log.Fatal("this program is compiled incorrectly")
	return compPoison
}