Commit cf58aa89 by zhengqiuyun86

数组差集算法

parent 179a4ecc
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
"strings" "strings"
) )
func ParamNumber[T any](c *gin.Context, key string) *T { func Param[T any](c *gin.Context, key string) *T {
if val, ok := c.Get(key); ok && val != nil { if val, ok := c.Get(key); ok && val != nil {
i, _ := val.(T) i, _ := val.(T)
return &i return &i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment