golive

command module
v0.0.0-...-bba5521 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 15 Imported by: 0

README

Go live

GoLive is a lightweight Go language hot reload tool designed to simplify the development process and improve development efficiency.
By monitoring project files for changes, GoLive automatically detects and restarts your Go services.

Installation

Make sure you have Go installed on your machine. Then, run the following command to install GoLive:

go install github.com/fupengl/golive@latest

Usage

To use GoLive, replace the usual go run command with golive. For example:

golive main.go

This will start your Go application and automatically restart it whenever there are changes to the source code.

How It Works

GoLive utilizes Go modules to discover and monitor changes in your project. It automatically finds the working directory and detects any replace directives declared in your go.mod file.

  1. Working Directory: GoLive automatically identifies the working directory based on your project structure.

  2. Go Modules: It leverages the information from your go.mod file, ensuring that replace directives and module dependencies are correctly handled.

  3. Automatic Restart: Whenever there are changes detected in the source code, GoLive intelligently restarts your Go application without manual intervention.

Features

  • Automatic restart on file changes
  • Simplifies the development process
  • Easy to integrate into your existing projects

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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