prettyfolder

command module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

README

prettyfolder

A prettier version of go's http.FileServer. With search on directory listings

Usage

prettyfolder [-bind <address>] [-port <port>] [-dir <directory>]
  • -bind: Specify the address for the server to listen on
    • Default is localhost
  • -port: Specify the port for the server to listen on
    • Default is 8080
  • -gzip: Use gzip
    • gzip is off by default
  • -dir: Specify the root directory for the server to serve
    • Default is current directory (.)
  • -version: Print version number

see prettyfolder -help

Install

Compiling
  1. Install go: https://golang.org/doc/install
  2. Run go get -u codeberg.org/masoudd/prettyfolder. This will install an executable file named prettyfolder in your $GOPATH/bin. See go help install and go env for more info.
Pre built binaries for Windows

Download the latest version from here

Building

  1. Install go: https://golang.org/doc/install
  2. clone the project:
    • git clone https://codeberg.org/masoudd/prettyfolder
    • cd prettyfolder
  3. go build -ldflags="-X 'main.versionNumber=$(git describe --tags)'" this will create the standalone executable file prettyfolder (or prettyfolder.exe if you're on windows)
    • Or if you want to build a static executable: go build -ldflags "-X 'main.versionNumber=$(git describe --tags)' -w -extldflags -static" -tags netgo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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