Go-Gin-RestAPI

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

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

Go to latest
Published: Oct 27, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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