From 7cb7d0a574a6d3ce4e616ee348fda2bed47bffef Mon Sep 17 00:00:00 2001 From: raul Date: Tue, 18 Jun 2024 12:24:54 +0200 Subject: [PATCH] Configure structs to allow file upload/download --- structs.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/structs.go b/structs.go index 07c5282..c847568 100644 --- a/structs.go +++ b/structs.go @@ -17,10 +17,10 @@ type Instructions struct { IsKillswitch bool - // IsDownload bool - // IsUpload bool - // FileName string - // FileContents []byte + IsDownload bool + IsUpload bool + FileName string + FileContents []byte IsListFiles bool Path string @@ -32,9 +32,10 @@ type Response struct { Successful bool Message string - // IsUpload bool - // FileName string - // FileContents []byte + IsDownload bool + IsUpload bool + FileName string + FileContents []byte IsListFiles bool FileList