Vivek
Vivek

Reputation: 166

How to Live Reload golang REST project like nodemon in nodejs?

I want to run golang REST api project in echo labstack.
for development purpose i want that when i save file it automatically refesh the api's in VS code like nodemon does in nodejs.

i am trying to go run main.go each time to execute updated code. but i want that it should execute updated code automatically.

Upvotes: 2

Views: 1644

Answers (2)

Risyandi
Risyandi

Reputation: 9

You can use several tools for hot reloading your project using the Go language. the tools you can use are below:

1. Gin Reload

2. Compile daemon

3. Air

I hope the tools helpful for efficiently updated your changes in code.

Upvotes: 0

reactor
reactor

Reputation: 1931

I haven't used it myself but there's this https://github.com/cosmtrek/air

Upvotes: 3

Related Questions