igilham / go-file-server

A simple HTTP file server in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go File Server

This is a simple example of a basic HTTP file server in Go.

Build

go build fileserve.go

Usage

By default, the application will serve the current working directory on port 8080. The directory and port can be overridden with arguments on the command line.

./fileserve [-d path/to/directory] [-p port]

About

A simple HTTP file server in Go.

License:MIT License


Languages

Language:Go 100.0%