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

import (
	"log"
	"path"
)

const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"

var (
	fmain = 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
}