Skip to content

anilsenay/gohot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Hot Reload Example

I implemented a basic hot reloading tool for working with static html pages in Golang. It's better to use some live reloading tool such as air currently. I am planning to implement a file watcher as well.

ScreenRecording2024-01-15at00 53 35-ezgif com-video-to-gif-converter

Installation

go install github.com/anilsenay/gohot

Usage

Start hot reload server:

Default:

gohot start

With options:

gohot start --port 3000 --proxy http://localhost:8080

Refresh the page:

Default:

gohot refresh

With options:

gohot refresh --port 3000