// GetOSandArch validates/returns the current os/arch combination if supported and panics otherwise
GetOSandArch validates/returns the current os/arch combination if supported and panics otherwise
// GetOSandArch validates / returns the current os / arch combination if supported and panics otherwise
func GetOSandArch(separator string) string {
	switch runtime.GOOS {
	case "darwin":
		if runtime.GOARCH == "amd64" {
			return "darwin" + separator + "amd64"
		}
	case "linux":
		switch runtime.GOARCH {
		case "amd64":
			return "linux" + separator + "amd64"
		case "arm64":
			return "linux" + separator + "arm64"
		}
	case "windows":
		if runtime.GOARCH == "amd64" {
			return "windows" + separator + "amd64"
		}
	}
	panic(fmt.Sprintf("unsupported platform %s%s%s", runtime.GOOS, separator, runtime.GOARCH))
}
func GetOSandArch ( separator string ) string { switch runtime . GOOS { case " " : if runtime . GOARCH == " " { return " " + separator + " " } case " " : switch runtime . GOARCH { case " " : return " " + separator + " " case " " : return " " + separator + " " } case " " : if runtime . GOARCH == " " { return " " + separator + " " } } panic ( fmt . Sprintf ( " " , runtime . GOOS , separator , runtime . GOARCH ) ) }
GetOSandArch validates/returns the current os/arch combination if supported and panics otherwise
GetOSandArch validates / returns the current os / arch combination if supported and panics otherwise