wheat-cache/middleware/config/middle.template

21 lines
484 B
Plaintext

// Code generated by gen-middleware. DO NOT EDIT.
// make gen-middleware generated
package config
import (
"gitee.com/timedb/wheatCache/middleware"
{%for dir in dirs %}
{{dir[0]}} "gitee.com/timedb/wheatCache/middleware/{{dir[1]}}"
{%- endfor%}
)
func GetMiddlewareMap() map[string]middleware.MiddlewareInterface {
return map[string]middleware.MiddlewareInterface{
{%for dir in dirs %}
"{{dir[0]}}":{{dir[0]}}.NewMiddleware(),
{%- endfor%}
}
}