func GetSettingsPath() (dest string) {
	var currentOS string = runtime.GOOS
	dest = "~/.Noodle/"
	if currentOS == "windows" {
		dest = strings.ReplaceAll(os.Getenv("APPDATA"), "\\", "/")
		dest += "/Noodle/"
	}

	// Create the folder if it doesn't exist
	err := helpers.CreateLocation(dest)

	if err != nil {
		log.Fatalln("Unable to create the settings folder! " + err.Error())
	}

	return dest
}
// GetSettingsPath returns the correct path to where the application's files are
// stored. If the folder doesn't exist it will be automatically created
// Each OS has a different path:
// Windows: %AppData%\Noodle
// macOS: ~/Library/Preferences/Noodle
// *nix: ~/.Noodle
GetSettingsPath returns the correct path to where the application's files are
stored. If the folder doesn't exist it will be automatically created
Each OS has a different path:
Windows: %AppData%\Noodle
macOS: ~/Library/Preferences/Noodle
*nix: ~/.Noodle
// GetSettingsPath returns the correct path to where the application ' s files are // stored . If the folder doesn ' t exist it will be automatically created // Each OS has a different path : // Windows : %AppData% \ Noodle // macOS : ~ / Library / Preferences / Noodle // * nix : ~ / . Noodle
func GetSettingsPath() (dest string) {
	var currentOS string = runtime.GOOS
	dest = "~/.Noodle/"
	if currentOS == "windows" {
		dest = strings.ReplaceAll(os.Getenv("APPDATA"), "\\", "/")
		dest += "/Noodle/"
	}
	err := helpers.CreateLocation(dest)
	if err != nil {
		log.Fatalln("Unable to create the settings folder! " + err.Error())
	}
	return dest
}
func GetSettingsPath ( ) ( dest string ) { var currentOS string = runtime . GOOS dest = " " if currentOS == " " { dest = strings . ReplaceAll ( os . Getenv ( " " ) , " \\ " , " " ) dest += " " } err := helpers . CreateLocation ( dest ) if err != nil { log . Fatalln ( " " + err . Error ( ) ) } return dest }
GetSettingsPath returns the correct path to where the application's files are
stored.
GetSettingsPath returns the correct path to where the application ' s files are stored .
// Create the folder if it doesn't exist