summaryrefslogtreecommitdiff
path: root/internal/easyhttp/easyhttp.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-07-01 11:13:41 +0300
committerPaul Buetow <paul@buetow.org>2024-07-01 11:13:41 +0300
commit0fa5420bfaed55ecbb43e98a18138aed7f658660 (patch)
tree1f9e6c650455226da3f436c4f7e967f657384a25 /internal/easyhttp/easyhttp.go
parentecc323b3b45e666a3376d7983424837d58336198 (diff)
display error message in TUI
Diffstat (limited to 'internal/easyhttp/easyhttp.go')
-rw-r--r--internal/easyhttp/easyhttp.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/easyhttp/easyhttp.go b/internal/easyhttp/easyhttp.go
index 7cd24ff..ca10a8e 100644
--- a/internal/easyhttp/easyhttp.go
+++ b/internal/easyhttp/easyhttp.go
@@ -43,3 +43,8 @@ func GetData[T any](uri, apiKey string, data *T) error {
return json.Unmarshal(bytes, data)
}
+
+// Submiut structure as JSON to API
+func SubmitData[T any](servers []string, uri, apiKey string, data *T) error {
+ return nil
+}