reload

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package reload offers lightweight automatic reloading of running processes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec()

Exec replaces the current process with a new copy of itself.

func Watch

func Watch(additional ...string) error

Do reload the current process when its binary changes.

The log function is used to display an informational startup message and errors. It works well with e.g. the standard log package or Logrus.

The error return will only return initialisation errors. Once initialized it will use the log function to print errors, rather than return.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL