An open API service indexing awesome lists of open source software.

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.

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