SpencerCDixon / exocortex

Open source, language independent, modern personal wiki
237 stars 20 forks source link

Use os.ExpandEnv to allow users to use environment variables for their config paths #5

Closed SpencerCDixon closed 6 years ago

SpencerCDixon commented 6 years ago

On different machines I might want to store wiki in a different location. Using env variables to define absolute path would be a big win.

path := filepath.Join(os.ExpandEnv("${HOME}"), "wiki-path")