Skip to content

Latest commit

 

History

History
executable file
·
22 lines (16 loc) · 790 Bytes

README.md

File metadata and controls

executable file
·
22 lines (16 loc) · 790 Bytes

Go Report Card

Go fileserver

Simple file server that shares access to a directory over HTTP using a selected port.

By default, the current working directory is hosted on port 8080 if no flags were specified.

Installation

Build from the source

go install github.com/bazuker/fileserver@latest

Or check out the pre-built binaries

CLI Usage

fileserver -port=5555 -dir="/users/username/documents/public"

This command will host the directory /users/username/documents/public on the port 5555. Now, you should be able to access it via a web browser at http://localhost:5555/