code: func buildPlatformPath(path string) string {
  	if runtime.GOOS == "windows" {
  		return fmt.Sprintf("%s\\%s\\%s", os.Getenv("APPDATA"),
  			applicationName,
  			path)
  	}
  
  	var unixConfigDir string
  	if xdg := os.Getenv("XDG_CONFIG_HOME"); xdg != "" {
  		unixConfigDir = xdg
  	} else {
  		unixConfigDir = os.Getenv("HOME") + "/.config"
  	}
  
  	return fmt.Sprintf("%s/%s/%s", unixConfigDir,
  		applicationName,
  		path)
  }
docs: // buildPlatformPath builds a platform-dependent path for relative path given.