kleinCommand/common/socketPaths.go

13 lines
224 B
Go
Raw Normal View History

2025-07-20 00:47:03 +02:00
package common
import (
"os"
"path/filepath"
)
var ExampleServiceSocketPath = GetSocketPath(ExampleServiceName)
func GetSocketPath(serviceName string) string {
return filepath.Join(os.TempDir(), serviceName+".sock")
}