This is a giant refactor to move functions into a hierarchial module layout. While this isn't entirely implemented yet, it should work correctly once all the import bits have landed. What's broken at the moment is the template function, which currently doesn't understand the period separator.
14 lines
204 B
Plaintext
14 lines
204 B
Plaintext
import "fmt"
|
|
import "sys"
|
|
|
|
$env = sys.env()
|
|
$m = maplookup($env, "GOPATH", "")
|
|
|
|
print "print0" {
|
|
msg => if sys.hasenv("GOPATH") {
|
|
fmt.printf("GOPATH is: %s", $m)
|
|
} else {
|
|
"GOPATH is missing!"
|
|
},
|
|
}
|