Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-run

go-run is a simple bash script that monitors for file change and reloads automatically.

While live-reload tools in the code editor work great for rendering plain html+css, Go projects utilizing templates require tedious manual reloading. go-run automates this.

Shellcheck Update Version

Features

  • accepts arbitrary arguments and passes them through
  • lists detected file changes
  • stops upon program termination or signal interrupt
  • preserves exit codes in all scenarios

Getting Started on Linux

Copy the file and give it permission to run:

curl -o go-run https://raw.githubusercontent.com/grackleclub/go-run/refs/heads/main/go-run

Make the script executable:

chmod +x go-run

Make the script globally executable (optional):

sudo mv go-run /usr/local/bin

Verify installation:

go-run version

Tip

go-run can be scoped to the project, and optimally kept in a bin directory, consolidated with other tools, so that it may be run as bin/go-run. Use the optional step of moving the script to /usr/local/bin to make go-run directly executable from anywhere.

Demo and Testing Options

Demo the project using the example module: example-demonstration

Updating

Run go-run update to update: example-update

Feedback

😎 Open a pull request!

About

go live reload - automatically restart Go upon file changes

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages