comment old code for reference

This commit is contained in:
Baipyrus 2024-04-14 21:47:48 +02:00
parent 80984f8243
commit 30e6c4a35b

26
main.go
View File

@ -35,18 +35,20 @@ func main() {
// Initialize resty client // Initialize resty client
client := resty.New() client := resty.New()
// Initialize custom matrix data
col := Color{R: 255, G: 0, B: 255, Endpoint: COLOR}
rct := Rectangle{X: 0, Y: 0, W: 10, H: 10, Endpoint: RECTANGLE}
// Send request to remote server
sendRequest(client, url, []interface{}{col, rct})
// Initialize custom matrix data // // Initialize custom matrix data
col = Color{R: 255, G: 255, B: 0, Endpoint: COLOR} // col := Color{R: 255, G: 0, B: 255, Endpoint: COLOR}
rct = Rectangle{X: 15, Y: 15, W: 15, H: 15, Endpoint: RECTANGLE} // rct := Rectangle{X: 0, Y: 0, W: 10, H: 10, Endpoint: RECTANGLE}
upd := Update{Endpoint: UPDATE} //
// // Send request to remote server
// Send request to remote server // sendRequest(client, url, []interface{}{col, rct})
sendRequest(client, url, []interface{}{col, rct, upd}) //
// // Initialize custom matrix data
// col = Color{R: 255, G: 255, B: 0, Endpoint: COLOR}
// rct = Rectangle{X: 15, Y: 15, W: 15, H: 15, Endpoint: RECTANGLE}
// upd := Update{Endpoint: UPDATE}
//
// // Send request to remote server
// sendRequest(client, url, []interface{}{col, rct, upd})
} }