diff --git a/http/http.go b/http/http.go index b76621d..09f2641 100644 --- a/http/http.go +++ b/http/http.go @@ -92,3 +92,11 @@ func Post(ctx context.Context, url string, target any, data ...any) (err error) err = doRequest(ctx, http.MethodPost, url, target, data) return } +func Put(ctx context.Context, url string, target any, data ...any) (err error) { + err = doRequest(ctx, http.MethodPut, url, target, data) + return +} +func Delete(ctx context.Context, url string, target any, data ...any) (err error) { + err = doRequest(ctx, http.MethodPut, url, target, data) + return +}