/gows

go simple server for serving a website directory

Primary LanguageGo

gss

go simple server for serving a website directory

Add the executable to a directory in your path, renaming it to gss, then to use, just navigate to the directory you want to serve and run

gows

can also specify the relative or absolute path to the directory you want to serve:

gows -d="./docs"

Build

on windows (powershell)

$GOOS="windows"; $GOARCH="amd64"; go build -o gss.exe .\main.go
$GOOS="darwin"; $GOARCH="amd64"; go build -o gss .\main.go

on mac/linux

GOOS=windows GOARCH=amd64 go build -o gss.exe .\main.go
GOOS=darwin GOARCH=amd64 go build -o gss .\main.go