You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nikolay Kasyanov
769d8f08b8
|
4 years ago | |
---|---|---|
.. | ||
logger | 4 years ago | |
server | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
go.mod | 4 years ago | |
main.go | 4 years ago |
README.md
fileServer
A simple implementaion of a simple local file server. Useful if you need to transport a file locally
Usage
There are 2 flags you can specify
- Port (
-port=
) - port that will be used by the server - Dir (
-dir=
) - the directory with its subdirectories that will be served
Examples
./fileserver
- serve current directory (by default) on default port8000
./fileserver -port=8080
- serve current directory on specified port8080
./fileserver -dir="."
- serve current directory on default port8000
./fileserver -dir=/
- serve "/" (root) on default port8000
./fileserver -port=8080 -dir=/home/
- serve/home/
on specified port8080