go-webserver

command module
v0.0.0-...-42edb96 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: BSD-3-Clause Imports: 14 Imported by: 0

README

go-webserver

This program will embed the contents of the src directory into the generated binary and then server it on port 2300 or the next available port if that one is in use. This implementation supports gzip compressed files to both reduce the binary size and reduce the bandwidth used. This binary has a GUI which is nice for distributing manuals and documentation which can then be run and shown in the web browser.

Running Server Screenshot

Requirements

  • gtk3 - For the GUI.
  • upx - To compress the executable.
  • gzip - To compress the contents of the src directory.

Building

The building process will take a very long time the very first time because it has to compile GTK3 bindings. After the first build it will compile almost instantly depending on the size of the contents of the src directory.

To build the smallest possible binary use compress.sh which will compress the contents of the src directory into gzip compressed files then use upx on the resulting binary.

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