13 lines
160 B
Go
13 lines
160 B
Go
package tool
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
func Local(c *gin.Context, key string) any {
|
|
data, ok := c.Get(key)
|
|
if !ok {
|
|
return nil
|
|
}
|
|
|
|
return data
|
|
}
|