1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Rename internal url package to avoid overlap with net/url

This commit is contained in:
Frédéric Guillot 2023-08-13 19:09:01 -07:00
parent 9f465fd70d
commit e5d9f2f5a0
23 changed files with 74 additions and 75 deletions

View file

@ -7,7 +7,7 @@ import (
"fmt"
"miniflux.app/v2/internal/http/client"
"miniflux.app/v2/internal/url"
"miniflux.app/v2/internal/urllib"
)
// Document structure of an Espial document
@ -42,7 +42,7 @@ func (c *Client) AddEntry(link, title, content, tags string) error {
Tags: tags,
}
apiEndpoint, err := url.JoinBaseURLAndPath(c.baseURL, "/api/add")
apiEndpoint, err := urllib.JoinBaseURLAndPath(c.baseURL, "/api/add")
if err != nil {
return fmt.Errorf(`espial: invalid API endpoint: %v`, err)
}