mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 13:22:09 +08:00
16 lines
273 B
Go
16 lines
273 B
Go
package binding
|
|
|
|
type options struct {
|
|
params map[string]interface{}
|
|
query map[string]interface{}
|
|
}
|
|
|
|
type Option func(opt *options) error
|
|
|
|
func WithParams(params map[string]interface{}) Option {
|
|
return func(opt *options) error {
|
|
opt.params = params
|
|
return nil
|
|
}
|
|
}
|