Safe3-openresty-manager/service/service_go1.8.go
UUSEC Technology 12467d8fd1 open source
2025-04-30 13:05:17 +08:00

16 lines
226 B
Go

//go:build go1.8
// +build go1.8
package service
import (
"os"
"path/filepath"
)
func (c *Config) execPath() (string, error) {
if len(c.Executable) != 0 {
return filepath.Abs(c.Executable)
}
return os.Executable()
}