docstrings added to functions, types and methods

CHANGELOG first update

pre-commit updated to look in root of repo.

version retraction added to go.mod

README updated to reflect changes
This commit is contained in:
onyx-and-iris
2022-07-10 23:08:14 +01:00
parent 36522cf80c
commit 1efac19b12
22 changed files with 351 additions and 113 deletions

View File

@@ -1,6 +1,7 @@
package voicemeeter
type t_outputs interface {
// iOutputs defines the interface outputs type must satisfy
type iOutputs interface {
GetA1() bool
SetA1(val bool)
GetA2() bool
@@ -19,10 +20,13 @@ type t_outputs interface {
SetB3(val bool)
}
// outputs represents the outputs field (A1 - A5, B1 - B3)
// expected to be embedded
type outputs struct {
iRemote
}
// newOutputs returns an outputs type
func newOutputs(id string, i int) outputs {
o := outputs{iRemote{id, i}}
return o