Annotation
About |
Features |
Technologies |
Requirements |
Starting |
License |
Author
🎯 About
Routes are first written in the comment lines. Then the library I prepared reads these comment lines and creates automatic route functions.
It provides a Symfony framework or Flask-style routing environment.
It does not cause performance problems because the route function is already created.
You can help me to make it work within routing libraries other than fiber.
✨ Features
✔ gofiber/fiber route template;
🛠 net/http route template;
🛠 gorilla/mux route template;
🛠 Fjulienschmidt/httprouter route template;
🚀 Technologies
The following tools were used in this project:
- Golang: The main language used in this project.
✅ Requirements
Before you begin, you 🏁 need to have Git and Golang installed.
🏁 Starting
# Go get the dependencies
$ go get github.com/ugurkorkmaz/annotation
package main
//go:generate go run github.com/ugurkorkmaz/annotation --directory=./example --package=example --mode=fiber --output=./example/routes.go
# Generate routes
$ go generate
📝 License
This project is under license from MIT. For more details, see the LICENSE file.
Made with ❤ by Uğur Korkmaz
Back to top