Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type HTTPDownloader ¶
type HTTPDownloader struct{}
func NewHTTPDownloader ¶
func NewHTTPDownloader() *HTTPDownloader
func (*HTTPDownloader) Download ¶
func (d *HTTPDownloader) Download(source string, baseURL string, path string) error
Download downloads an image from the specified source URL.
Parameters: - src: the URL of the image to download. - baseURL: the base URL for resolving relative URLs. - path: the directory path to save the downloaded image. Returns: - error: an error if there was an issue during the download process.
Click to show internal directories.
Click to hide internal directories.