mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-21 22:38:59 +00:00
split types out
This commit is contained in:
@@ -10,16 +10,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type OSCArg struct {
|
|
||||||
Type string
|
|
||||||
Value any
|
|
||||||
}
|
|
||||||
|
|
||||||
type OSCMessage struct {
|
|
||||||
Address string
|
|
||||||
Args []OSCArg
|
|
||||||
}
|
|
||||||
|
|
||||||
func stringToOSCBytes(rawString string) []byte {
|
func stringToOSCBytes(rawString string) []byte {
|
||||||
var sb strings.Builder
|
var sb strings.Builder
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
package osc
|
||||||
|
|
||||||
|
type OSCArg struct {
|
||||||
|
Type string
|
||||||
|
Value any
|
||||||
|
}
|
||||||
|
|
||||||
|
type OSCMessage struct {
|
||||||
|
Address string
|
||||||
|
Args []OSCArg
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user