Coder Social home page Coder Social logo

yalinerkaya / golive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fupengl/golive

0.0 0.0 0.0 9 KB

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

License: MIT License

Go 100.00%

golive's Introduction

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.

golive's People

Contributors

fupengl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.