Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evan-buss/go-serve
Quickly download files and folders from computers on the local network
https://github.com/evan-buss/go-serve
Last synced: 30 days ago
JSON representation
Quickly download files and folders from computers on the local network
- Host: GitHub
- URL: https://github.com/evan-buss/go-serve
- Owner: evan-buss
- Created: 2019-09-11T01:15:01.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-25T22:19:11.000Z (about 5 years ago)
- Last Synced: 2023-03-03T11:34:47.900Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 54.7 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# GoServe - HTTP File Server
Quickly download files and folders from computers on the local network
## Why
I found Python's quick local network file server to be useful for transferring files in a pinch. The only problem is you cannot download folders. GoServe quickly zips folders before sending them. It also looks a bit nicer than the default Python file server.
## Installation
`go get github.com/evan-buss/go-serve`
## Usage
```
Usage of go-serve:
-home
Sets the base file server directory to your home directory
-port string
Change the server's port (default "8080")
-showDots
Enable to make dotfiles visible
-unsafe
Sets the base file server directory to the root '/' directory. Use with caution.
```## Screenshot
## Development
In order to package go-serve as a single executable, it makes use of the go-bindata utility.
This transforms the HTML template into a plain `*.go` file. If you make changes to the HTML template,
you must recompile it.1. `go get -u github.com/go-bindata/go-bindata/...`
2. Run `go-bindata data/`
3. `bindata.go` is generated.