middleware

package
v0.0.0-...-f99bec7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS(r *ghttp.Request)

CORS 允许跨域请求中间件

func I18N

func I18N(r *ghttp.Request)

I18N 初始化默认的语言环境 语言环境的获取: 从 seesion 信息中获取,如果没有则根据请求头 `Accept-Language` 的值获取

Types

This section is empty.

Jump to

Keyboard shortcuts

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