anilsenay / gohot

Simple hot reloading implementation in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple hot reloading implementation in Go


Languages

Language:Go 98.2%Language:HTML 1.5%Language:Makefile 0.3%