From 0a7b8e066214324da300cc0f6b203288d7bb4e56 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Wed, 14 Sep 2022 21:17:20 +0100 Subject: [PATCH] fix whitespace --- examples/hotkeys/main.go | 56 ++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/examples/hotkeys/main.go b/examples/hotkeys/main.go index ebe5cdf..fa51c8a 100644 --- a/examples/hotkeys/main.go +++ b/examples/hotkeys/main.go @@ -2,10 +2,10 @@ package main import ( "fmt" - "log" + "log" "github.com/eiannone/keyboard" - "github.com/onyx-and-iris/voicemeeter-api-go" + "github.com/onyx-and-iris/voicemeeter-api-go" ) func main() { @@ -16,7 +16,7 @@ func main() { _ = keyboard.Close() }() - vm, err := voicemeeter.NewRemote("potato", 0) + vm, err := voicemeeter.NewRemote("potato", 0) if err != nil { log.Fatal(err) } @@ -28,30 +28,30 @@ func main() { defer vm.Logout() fmt.Println("Press ESC to quit") - Loop: - for { - char, key, err := keyboard.GetKey() - if err != nil { - panic(err) - } - - switch char { - case '0': - fmt.Printf("Logged into Voicemeeter %s, version %s\n", vm.Type(), vm.Version()) - case '1': - vm.Strip[0].SetMute(!vm.Strip[0].GetMute()) - case '2': - if vm.Strip[3].GetGain() == -12.8 { - vm.Strip[3].FadeBy(-8.3, 500) - } else { - vm.Strip[3].FadeTo(-12.8, 500) - } - case '3': - vm.Strip[5].AppMute("Spotify", true) - default: - if key == keyboard.KeyEsc { - break Loop - } - } +Loop: + for { + char, key, err := keyboard.GetKey() + if err != nil { + panic(err) } + + switch char { + case '0': + fmt.Printf("Logged into Voicemeeter %s, version %s\n", vm.Type(), vm.Version()) + case '1': + vm.Strip[0].SetMute(!vm.Strip[0].GetMute()) + case '2': + if vm.Strip[3].GetGain() == -12.8 { + vm.Strip[3].FadeBy(-8.3, 500) + } else { + vm.Strip[3].FadeTo(-12.8, 500) + } + case '3': + vm.Strip[5].AppMute("Spotify", true) + default: + if key == keyboard.KeyEsc { + break Loop + } + } + } }