go-fileserver

command module
v0.0.0-...-c32c6ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2025 License: MIT Imports: 6 Imported by: 0

README

Build Status Go Report Card

go-fileserver

A simple fileserver written in Go (1.12)

Building source

go build -o fileserver main.go

Configuration

Name Default Description
PORT 8080 Port the fileserver is listening on
FILE_ROOT ./ File root of the fileserver on the machine

Usage: Application

You can run the application as-is. No flags or parameters are required.

./fileserver

Usage: Docker

  • Build the docker image:
docker build -t <tag> .
  • Run the container. Use a volume to share data on your machine.
docker run --rm -p 8080:8080 -v ${PWD}:/root <tag>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL