A tiny CLI tool to start a local file server.

liuyuqi-dellpc 6f854e4506 add ico 5 months ago
util 634531c9bd 执行前kill 5 months ago
.gitignore cd61955735 完事打开浏览器 4 years ago
Dockerfile 410ab0a33a remove cache 5 months ago
LICENSE 2f96c1f878 Add license and update README 4 years ago
README.md 410ab0a33a remove cache 5 months ago
go.mod df954747b7 优化项目结构 5 months ago
main.go 634531c9bd 执行前kill 5 months ago
main.ico 6f854e4506 add ico 5 months ago
main.rc 6f854e4506 add ico 5 months ago
main.syso 6f854e4506 add ico 5 months ago

README.md

FS Go

FS Go is a tiny CLI tool in order to spawn a local file server.

REQUIREMENTS

  • Go >= 1.13

BUILD

In order to build the executable run the following command:

$ go build

START THE SERVER

Starting the server is easy:

$ ./fs-go -port 8080 -dir .
$ /opt/fs-go/fs-go -addr 0.0.0.0:8081 -dir .

# xyplorer
! D:\opt\fs-go\fs-go.exe -port 88 -dir  "<curpath>"

Only two parameters are needed:

  • dir: The directory that will be served. (default: .)
  • port: The port that the server will listen to. (default: 8080)

INSTALL GLOBALLY

If you only want to use this CLI tool as a binary then you can do that easily:

$ go install

Now you can use:

$ fs-go

From anywhere in your system.

Reference