Lewati ke konten

Routing

Konten ini belum tersedia dalam bahasa Anda.

Gin provides a powerful routing system built on httprouter for high-performance URL matching with zero memory allocations.

This section covers:

  • Defining routes with HTTP methods (GET, POST, PUT, DELETE, etc.)
  • Capturing parameters from URL paths
  • Handling query strings and form data
  • Uploading files
  • Grouping routes with common prefixes and middleware
  • Performing redirects