mirror of
https://github.com/caddyserver/xcaddy.git
synced 2024-11-03 07:50:30 +00:00
14 lines
243 B
Go
14 lines
243 B
Go
|
package utils
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
// GetGo returns the go executable to use depending on what
|
||
|
// is set in the XCADDY_WHICH_GO environment variable.
|
||
|
func GetGo() string {
|
||
|
g := os.Getenv("XCADDY_WHICH_GO")
|
||
|
if g == "" {
|
||
|
return "go"
|
||
|
}
|
||
|
return g
|
||
|
}
|