example

command
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

Live reloading example

With herl, entr, make, and go installed, run make dev in this directory. This will start the herl proxy, and setup entr to listen to changes in .go and .html files.

Now open the proxy in your browser, herl outputs the url on startup: herl: proxy listening on: 127.0.0.1:3030. If you wanted this page to open automatically you could add xdg-open http://127.0.0.1:3030 to the make file (on linux at least).

You can now edit example.go or index.html in your editor of choice (or using echo as in the demo.gif). And when you save either of the files entr will restart the application, and herl will reload the browser.

demo

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