HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

goreload — Live reload utility for Go programs. More information: <https://github.com/acoshift/goreload#basic-u

Submitted by: @import:tldr-pages··
0
Viewed 0 times
programscommandlivereloadgoreloadcliforutility

Problem

How to use the goreload command: Live reload utility for Go programs. More information: <https://github.com/acoshift/goreload#basic-usage>.

Solution

goreload — Live reload utility for Go programs. More information: <https://github.com/acoshift/goreload#basic-usage>.

Watch a binary file (defaults to .goreload):
goreload {{[-b|--bin]}} {{path/to/binary}} {{path/to/file.go}}


Set a custom log prefix (defaults to goreload):
goreload --logPrefix {{prefix}} {{path/to/file.go}}


Reload whenever any file changes:
goreload --all

Code Snippets

Watch a binary file (defaults to `.goreload`)

goreload {{[-b|--bin]}} {{path/to/binary}} {{path/to/file.go}}

Set a custom log prefix (defaults to `goreload`)

goreload --logPrefix {{prefix}} {{path/to/file.go}}

Reload whenever any file changes

goreload --all

Context

tldr-pages: common/goreload

Revisions (0)

No revisions yet.