gin

package module
v0.0.0-...-ae20590 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 3 Imported by: 240 modules, 218 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cors/wrapper/gin provides gin.HandlerFunc to handle CORS related requests as a wrapper of github.com/rs/cors handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowAll

func AllowAll() gin.HandlerFunc

AllowAll creates a new CORS Gin middleware with permissive configuration allowing all origins with all standard methods with any header and credentials.

func Default

func Default() gin.HandlerFunc

Default creates a new CORS Gin middleware with default options.

func New

func New(options Options) gin.HandlerFunc

New creates a new CORS Gin middleware with the provided options.

Types

type Options

type Options = cors.Options

Options is a configuration container to setup the CORS middleware.

Jump to

Keyboard shortcuts

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