watchserve

command module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

README

watchserve

watchserve is an HTTP file server that's watching the served file for updates and automatically reloads the page in any modern JavaScript-capable browser.

Install

  1. download the latest version of Go.
  2. run the following command:
go get github.com/romshark/watchserve

How to use

watchserve -host localhost:8080 -f myfile.txt
  • -help prints help.
  • -f specifies the file to watch.
  • -host specifies the server address to listen on.
  • -debounce specifies how much time needs to pass after the last change was detected before a reload is triggered.
  • -no-redirect disables automatic redirect to the browser on start.

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