mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-19 07:50:43 +01:00
14 lines
225 B
Go
14 lines
225 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// GetDataDir returns the data directory path from environment or default
|
|
func GetDataDir() string {
|
|
if dir := os.Getenv("PULSE_DATA_DIR"); dir != "" {
|
|
return dir
|
|
}
|
|
return "/etc/pulse"
|
|
}
|