url.QueryEscape added for UrlEncode

This commit is contained in:
Pavel Dmitriev 2024-05-15 17:20:29 +03:00
parent 8eb9137d4b
commit a18920d818
1 changed files with 2 additions and 1 deletions

3
api.go
View File

@ -5,6 +5,7 @@ import (
"fmt"
"io"
"net/http"
"net/url"
"reflect"
"strings"
"time"
@ -125,5 +126,5 @@ func UrlEncode(s any) string {
}
}
return rv
return url.QueryEscape(rv)
}