kleinCommand/common/socketPaths.go
2025-07-20 00:47:03 +02:00

13 lines
224 B
Go

package common
import (
"os"
"path/filepath"
)
var ExampleServiceSocketPath = GetSocketPath(ExampleServiceName)
func GetSocketPath(serviceName string) string {
return filepath.Join(os.TempDir(), serviceName+".sock")
}