goserve

command module
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 3 Imported by: 0

README

goserve

HTTP file server

Preview

https://cmgsj.github.io/goserve

Install

Go
go install github.com/cmgsj/goserve@latest
GitHub

https://github.com/cmgsj/goserve/releases/latest

os="darwin"
arch="arm64"
version=""

if [[ -z "${version}" ]]; then
    version="$(curl -sSL "https://api.github.com/repos/cmgsj/goserve/releases/latest" | jq -r '.tag_name' | sed 's/^v//')"
fi

curl -sSLo /tmp/goserve.tar.gz "https://github.com/cmgsj/goserve/releases/download/v${version}/goserve_${version}_${os}_${arch}.tar.gz"

tar xzvf /tmp/goserve.tar.gz -C /tmp

rm -f /tmp/goserve.tar.gz

chmod +x /tmp/goserve

sudo mv /tmp/goserve /usr/local/bin

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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