GopherLight

๐Ÿš‚ An web micro-framework based on express-js

GPL-3.0 License

Stars
35
GopherLight - ๐Ÿš€ express-go v0.1 - The First Release! Latest Release

Published by BrunoCiccarino 9 days ago

express-go v0.1 Release Notes

๐Ÿš€ express-go v0.1 - The First Release!
We are excited to announce the first version of express-go, a micro-framework inspired by Express.js, now for the Go universe! This initial release brings the simplicity and flexibility you already love from Express, but with the robust performance and reliability of Go.

๐ŸŽฏ Main Features

  • Simple Routing: Set up routes quickly and easily. Just define the URL and a handler, and that's it!
app.Route("/hello", func(r *req.Request, w *req.Response) {
    w.Send("Hello, World!")
})
  • Easy Request Handling: The framework encapsulates HTTP request details to facilitate access to query parameters, headers and request body.
name := r.QueryParam("name")
token := r.Header("Authorization")
  • Flexible Responses: Send responses in plain text or JSON, all with convenient methods.
w.Send("Hello, Go!")
w.JSON(map[string]string{"message": "Hello, JSON"})

๐Ÿ› ๏ธ What's Coming
This is only version 0.1, so there's still a lot to go! We are working on:

  • Middleware for handling authentication and validations.
  • Support dynamic routes and route parameters.
  • Improvements in error management and customized responses.

๐Ÿ“ Contributions
This is an early version, and we are open to suggestions, improvements and contributions from the community. Feel free to explore the code, open issues, or submit PRs to make express-go even better!