Files
service/service_go1.8.go
2024-06-13 08:31:55 -05:00

17 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()
}