From 43e2e18ded6f5216866569c683cb067a1b00803f Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 12 Apr 2024 10:49:20 +0200 Subject: [PATCH] JSON metadata for marshaling --- main.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.go b/main.go index 0476097..ad3b81f 100644 --- a/main.go +++ b/main.go @@ -25,22 +25,22 @@ const ( ) type Update struct { - endpoint Endpoint + Endpoint Endpoint `json:"endpoint"` } type Color struct { - R int - G int - B int - endpoint Endpoint + R int `json:"r"` + G int `json:"g"` + B int `json:"b"` + Endpoint Endpoint `json:"endpoint"` } type Rectangle struct { - X int - Y int - W int - H int - endpoint Endpoint + X int `json:"x"` + Y int `json:"y"` + W int `json:"w"` + H int `json:"h"` + Endpoint Endpoint `json:"endpoint"` } func GetEnvFallback(key string, fallback ...string) (string, error) {