From 0fa5420bfaed55ecbb43e98a18138aed7f658660 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 1 Jul 2024 11:13:41 +0300 Subject: display error message in TUI --- internal/easyhttp/easyhttp.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/easyhttp') 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 +} -- cgit v1.2.3