https://github.com/ciathefed/retrieve
A lightweight and efficient Golang package for downloading files from the web with minimal code
https://github.com/ciathefed/retrieve
downloader golang http
Last synced: about 1 year ago
JSON representation
A lightweight and efficient Golang package for downloading files from the web with minimal code
- Host: GitHub
- URL: https://github.com/ciathefed/retrieve
- Owner: ciathefed
- License: mit
- Created: 2025-02-25T09:18:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-26T06:32:11.000Z (about 1 year ago)
- Last Synced: 2025-03-06T08:57:39.082Z (about 1 year ago)
- Topics: downloader, golang, http
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Retrieve

A lightweight and efficient Golang package for downloading files from the web with minimal code
## Install
```shell
go get -u github.com/ciathefed/retrieve
```
## Examples
```go
package main
import (
"log"
"github.com/ciathefed/retrieve"
)
func main() {
err := retrieve.New("https://example.com").
SetOutput("filename.ext").
Exec()
if err != nil {
log.Fatalf("failed to download file: %v", err)
}
}
```
You can find all the examples [here](https://github.com/ciathefed/retrieve/blob/main/_examples)
## Contributing
Contributions are welcome! Please follow these steps to contribute:
1. Fork the repository.
2. Create a new branch (`git checkout -b feature/YourFeature`).
3. Make your changes and commit them (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature/YourFeature`).
5. Open a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/ciathefed/retrieve/blob/main/LICENSE) file for details.