From aff5ec08bf522452ce054a8b908e5f4c331d7bd9 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 12 Apr 2024 10:01:24 +0200 Subject: [PATCH] prepare matrix types and data --- main.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/main.go b/main.go index f43d6d8..2fd1c58 100644 --- a/main.go +++ b/main.go @@ -11,5 +11,36 @@ import ( "github.com/joho/godotenv" ) +type Response struct { + success bool +} + +type Endpoint string + +const ( + RECTANGLE Endpoint = "rectangle" + UPDATE Endpoint = "update" + COLOR Endpoint = "color" +) + +type Update struct { + endpoint Endpoint +} + +type Color struct { + R int + G int + B int + endpoint Endpoint +} + +type Rectangle struct { + X int + Y int + W int + H int + endpoint Endpoint +} + func main() { }