Automatic Reloading in Go(fresh)

Automatically restarting the server always help us increase our efficiency, That is the reason we can do our job faster via automation so in this article we will learn how to restart the go-lang project.

There are multiple ways to restart the go-lang server after saving the file, but i will talk here about fresh.

Install fresh package in your system.

go get github.com/pilu/fresh

Instead of running the application using the usual go run main.go command, use the fresh command.

fresh

After changing some code then save.

That’s it for this time! I hope you enjoyed this post. As always, I welcome questions, notes, comments and requests for posts on topics you’d like to read. See you next time! Happy Coding !!!!!

--

--

Ankit Kumar Rajpoot

I’m a MERN Developer. ( Redux | AWS | Python ) I enjoy taking on new things, building skills, and sharing what I’ve learned.