From 9b7be8d89d15e268b7f32915e2751bbc2f4b1c16 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 23 Jun 2022 14:04:57 +0100 Subject: [PATCH] button factory method moved --- voicemeeter/button.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/voicemeeter/button.go b/voicemeeter/button.go index 3e9dedf..c989527 100644 --- a/voicemeeter/button.go +++ b/voicemeeter/button.go @@ -7,6 +7,11 @@ type button struct { index int } +// newButton returns a button type +func newButton(i int) button { + return button{i} +} + // getter returns the value of a macrobutton parameter func (m *button) getter(mode int) bool { return getMacroStatus(m.index, mode) == 1 @@ -23,11 +28,6 @@ func (m *button) setter(v bool, mode int) { setMacroStatus(m.index, value, mode) } -// newButton returns a button type -func newButton(i int) button { - return button{i} -} - // String implements the stringer interface func (m *button) String() string { return fmt.Sprintf("MacroButton%d\n", m.index)