Skip to content

automatic restarting of go http server on file change

License

Notifications You must be signed in to change notification settings

eliasuran/gomon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gomon

Make changes to your go http server without having to shutdown and rerun the program each time


gopher database

Preview

  • Automatic updates when making changes to your api 🚀

  • Built for the net/http standard package 🔥

Installation

Homebrew

brew tap eliasuran/apps
brew install gomon

Manual installation

git clone https://github/eliasuran/gomon@latest
cd gomon
go install

Run the program

gomon "path to dir with http server"

Usage

gomon "path/to/dir/with/main.go/file"
  • Run gomon and point to a directory containing a main.go file (currently only works with main.go files, working on fix)

  • Gomon will build a binary and run it. When you make changes, it will automatically build a new binary with the latest changes.

  • If it encounters an error, it will stay on the latest working version until the error is resolved.

About

automatic restarting of go http server on file change

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages