
This focuses on Windows first, but coudl be used for Mac and possibly linux in the future.
14 lines
229 B
Go
14 lines
229 B
Go
package store
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func getStorePath() string {
|
|
// TODO - system wide location?
|
|
|
|
home := os.Getenv("HOME")
|
|
return filepath.Join(home, "Library", "Application Support", "Ollama", "config.json")
|
|
}
|