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)