···21}
2223// GetConfigDir returns the appropriate configuration directory based on the OS
24-func GetConfigDir() (string, error) {
25 var configDir string
2627 switch runtime.GOOS {
···21}
2223// GetConfigDir returns the appropriate configuration directory based on the OS
24+var GetConfigDir = func() (string, error) {
25 var configDir string
2627 switch runtime.GOOS {