modulepackage
0.0.0-20241027154126-bbeb38711c2b
Repository: https://github.com/titi0001/go-gin-restapi.git
Documentation: pkg.go.dev
# README
Go-Gin-RestAPI
Go-Gin-RestAPI is a Go framework leveraging Gin, for rapid development of RESTful APIs. It offers streamlined HTTP routing and allows easy creation of web services, making it popular for building efficient and scalable backend solutions.
Using reflex
for Live Reloading
During development, it’s useful to have your server automatically restart when you make changes to your code. For this, we can use the reflex
package, which watches for file changes and restarts your Go application automatically, similar to nodemon
in Node.js.
Installing reflex
First, install reflex
:
go install github.com/cespare/reflex@latest
Configuring reflex
You can use reflex directly from the command line or set up a configuration file.
Using reflex from the command line:
reflex -r '\.go$' -s -- sh -c "go run main.go"
This command tells reflex to watch all .go files and restart the application whenever a change is detected.
Using reflex with a configuration file:
# Reflex config
-r '\.go$' -s -- sh -c "go run main.go"
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author