Categorygithub.com/oneleo/fsgo
repositorypackage
0.0.0-20210225093138-2d5a06fb4c1b
Repository: https://github.com/oneleo/fsgo.git
Documentation: pkg.go.dev

# README

FSGO

FSGO is a small file server with ZIP compression function for Browsing specify local folder and files.

PreRequire

  • Install Git - Distributed version control system.
  • Install Golang - Programming language.
    • For Windows OS: Make sure %GOPATH%\bin is inclouded in %PATH% environmental variables.
    • For Linux OS: Make sure $GOPATH/bin is inclouded in $PATH environmental variables.

Install

$> go get -u github.com/oneleo/fsgo

Usage

  1. Start this file server listen on default port :80 for browse ./ current folder:
$> fsgo
  1. Start this file server listen on default port :80 for browse ./ current folder, and auto-open in browser:
$> fsgo -b
  1. Start this file server listen on specified port :8081 for browse specified ./www folder, and auto-open in browser:
$> fsgo -p 8081 -f ./www -b
  1. Help message
$> fsgo -h
OR
$> fsgo --help
$> fsgo -h
FSGO is a small file server with ZIP compression function for Browsing specify local folder and files.
Usage:

        fsgo [-p port] [-f folder] [-b]

Flags:
  -b    Open URL in browser (shorthand)
  -f string
        Set shared folder (shorthand) (default "./")
  -p int
        Set listening port (shorthand) (default 80)

Examples:
  fsgo
        Start this file server listen on port ":80" for browse "./" current folder.
  fsgo -b
        Start this file server listen on port ":80" for browse "./" current folder, and open in browser.
  fsgo -p 8081 -f ./www -b
        Start this file server listen on specify port ":8081" for browse "./www" specify folder, and open in browser.

References