func ExampleRefresh() {
	configdir.Refresh()
}
Example for recalculating what the directories should be.
package configdir_test
import (
	"encoding/json"
	"fmt"
	"os"
	"path/filepath"
	"github.com/kirsle/configdir"
)
func Example() {
	configPath := configdir.LocalConfig("my-app")
	err := configdir.MakePath(configPath)  
	if err != nil {
		panic(err)
	}
	configFile := filepath.Join(configPath, "settings.json")
	type AppSettings struct {
		Username string `json:"username"`
		Password string `json:"password"`
	}
	var settings AppSettings
	if _, err = os.Stat(configFile); os.IsNotExist(err) {
		settings = AppSettings{"MyUser", "MyPassword"}
		fh, err := os.Create(configFile)
		if err != nil {
			panic(err)
		}
		defer fh.Close()
		encoder := json.NewEncoder(fh)
		encoder.Encode(&settings)
	} else {
		fh, err := os.Open(configFile)
		if err != nil {
			panic(err)
		}
		defer fh.Close()
		decoder := json.NewDecoder(fh)
		decoder.Decode(&settings)
	}
}
func ExampleSystemConfig() {
	paths := configdir.SystemConfig()
	fmt.Printf("Global system config paths: %v\n", paths)
	vendor := configdir.SystemConfig("acme")
	fmt.Printf("Vendor-specific config paths: %v\n", vendor)
	app := configdir.SystemConfig("acme", "sprockets")
	fmt.Printf("Vendor/app specific config paths: %v\n", app)
}
func ExampleLocalConfig() {
	path := configdir.LocalConfig()
	fmt.Printf("Local user config path: %s\n", path)
	vendor := configdir.LocalConfig("acme")
	fmt.Printf("Vendor-specific local config path: %s\n", vendor)
	app := configdir.LocalConfig("acme", "sprockets")
	fmt.Printf("Vendor/app specific local config path: %s\n", app)
}
func ExampleLocalCache() {
	path := configdir.LocalCache()
	fmt.Printf("Local user cache path: %s\n", path)
	vendor := configdir.LocalCache("acme")
	fmt.Printf("Vendor-specific local cache path: %s\n", vendor)
	app := configdir.LocalCache("acme", "sprockets")
	fmt.Printf("Vendor/app specific local cache path: %s\n", app)
}
func ExampleMakePath() {
	err := configdir.MakePath(configdir.LocalConfig("my-cool-app"))
	if err != nil {
		panic(err)
	}
	err = configdir.MakePath(configdir.LocalCache("acme", "sprockets", "client"))
	if err != nil {
		panic(err)
	}
	err = configdir.MakePath(configdir.SystemConfig("acme", "sprockets")...)
	if err != nil {
		panic(err)
	}
}