Add common go types
This commit is contained in:
parent
377e57ee43
commit
af4fc2fb64
4 changed files with 414 additions and 0 deletions
14
internal/common/outputdevice.go
Normal file
14
internal/common/outputdevice.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package common
|
||||
|
||||
type OutputDevice struct {
|
||||
ID string
|
||||
Name string
|
||||
Enabled bool
|
||||
}
|
||||
|
||||
func NewOutputDevice(id string, name string) *OutputDevice {
|
||||
return &OutputDevice{
|
||||
ID: id,
|
||||
Name: name,
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue