From a1a550b4bb836382e8a5cd72728e51bf68446ab6 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Tue, 30 Sep 2025 12:54:13 -0500 Subject: [PATCH] add json struct tags --- types.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types.go b/types.go index e9d9850..482fe7d 100644 --- a/types.go +++ b/types.go @@ -5,18 +5,18 @@ type OSCPacket interface { } type OSCBundle struct { - Contents []OSCPacket - TimeTag OSCTimeTag + Contents []OSCPacket `json:"contents"` + TimeTag OSCTimeTag `json:"timeTag"` } type OSCArg struct { - Value any - Type string + Value any `json:"value"` + Type string `json:"type"` } type OSCMessage struct { - Address string - Args []OSCArg + Address string `json:"address"` + Args []OSCArg `json:"args"` } type OSCColor struct {