Skip to content

Remove Gin Dependency, Use Inbuilt net/http for Routing #19

@kernelshard

Description

@kernelshard

Currently, the project relies on the Gin framework for routing, which is a popular choice but introduces an external dependency. For those who prefer to avoid additional dependencies or want to use only the standard library, it would be beneficial to replace Gin with the inbuilt net/http package for routing.

Proposed Changes:

  • Remove Gin as the router dependency from go.mod.
  • Use net/http directly for handling HTTP requests and routing.
  • Implement a simple, lightweight routing solution using http.ServeMux or a custom router that mimics common routing patterns.
  • Update example configurations and documentation to reflect this change.

Benefits:

  • Reduced External Dependencies: Reduces the project’s reliance on third-party libraries, making it lighter and more maintainable.
  • Standard Library Usage: Uses only the standard Go library, making the blueprint more universally compatible and easier for beginners to grasp.
  • Flexibility: Users can choose any third-party router (if needed) or stick with the basic net/http router.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions