https://github.com/colinzhu/file-server-go
A simple file server written in Go. It serves files from the current (or specific) directory.
https://github.com/colinzhu/file-server-go
Last synced: 3 months ago
JSON representation
A simple file server written in Go. It serves files from the current (or specific) directory.
- Host: GitHub
- URL: https://github.com/colinzhu/file-server-go
- Owner: colinzhu
- Created: 2024-05-21T15:13:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-22T15:55:50.000Z (about 1 year ago)
- Last Synced: 2025-01-15T07:30:57.785Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 6.39 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Server
This is a simple file server written in Go. It serves files from the current (or specific) directory.
## Usage
Download the binary from 'Release' from github
To start the server, run the following command:
`./file_server_linux_amd64`
By default the current directory is served, and a random port number is selected.
To specify a direct, use `-d`
e.g.
`./file_server_linux_amd64 -d /tmp`To specify a port number, use `-p`
e.g.
`./file_server_linux_amd64 -p 8080`To access the files, open a web browser and navigate to the printed address.