mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-09-01 19:49:02 +00:00
add json struct tags
This commit is contained in:
@@ -5,18 +5,18 @@ type OSCPacket interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OSCBundle struct {
|
type OSCBundle struct {
|
||||||
Contents []OSCPacket
|
Contents []OSCPacket `json:"contents"`
|
||||||
TimeTag OSCTimeTag
|
TimeTag OSCTimeTag `json:"timeTag"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OSCArg struct {
|
type OSCArg struct {
|
||||||
Value any
|
Value any `json:"value"`
|
||||||
Type string
|
Type string `json:"type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OSCMessage struct {
|
type OSCMessage struct {
|
||||||
Address string
|
Address string `json:"address"`
|
||||||
Args []OSCArg
|
Args []OSCArg `json:"args"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OSCColor struct {
|
type OSCColor struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user