13 lines
224 B
Go
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")
|
||
|
|
}
|