https://github.com/mrkouhadi/go-download-files
A guideline for serving files from the server filesystem, and downloading them from filesystem and from a url as well.
https://github.com/mrkouhadi/go-download-files
download-file go golang web
Last synced: 23 days ago
JSON representation
A guideline for serving files from the server filesystem, and downloading them from filesystem and from a url as well.
- Host: GitHub
- URL: https://github.com/mrkouhadi/go-download-files
- Owner: Mrkouhadi
- Created: 2023-10-02T03:31:12.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T04:00:53.000Z (about 2 years ago)
- Last Synced: 2025-01-18T12:34:36.614Z (10 months ago)
- Topics: download-file, go, golang, web
- Language: Go
- Homepage:
- Size: 351 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Description:
A guideline for serving files from the server filesystem, and downloading them from filesystem and from a url as well.
### Instructions:
- Clone the repository
- run: `go run *.go`
- Routes:
1. serve all files:http://localhost:8080/
2. serve a single file: http://localhost:8080/pdf
3. download a file from the server filesystem: http://localhost:8080/downloadPDFFromFS
4. download a file from a url: http://localhost:8080/downloadfilefromurl