[MM-37772] Idiomatic naming (URL, URI, API) (#18128)
* s/Url/URL/g & s/Uri/URI/g * s/Api/API/g
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a7f5512ff3
Коммит
757dc96461
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestUrlEncode(t *testing.T) {
|
||||
func TestURLEncode(t *testing.T) {
|
||||
|
||||
toEncode := "testing 1 2 3"
|
||||
encoded := URLEncode(toEncode)
|
||||
|
||||
@@ -176,7 +176,7 @@ func GetURLWithCache(url string, cache *RequestCache, skip bool) ([]byte, error)
|
||||
return cache.Data, err
|
||||
}
|
||||
|
||||
// Append tokens to passed baseUrl as query params
|
||||
// Append tokens to passed baseURL as query params
|
||||
func AppendQueryParamsToURL(baseURL string, params map[string]string) string {
|
||||
u, err := url.Parse(baseURL)
|
||||
if err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user