You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
240 B
Smarty
18 lines
240 B
Smarty
1 year ago
|
package svc
|
||
|
|
||
|
import (
|
||
|
{{.configImport}}
|
||
|
)
|
||
|
|
||
|
type ServiceContext struct {
|
||
|
Config {{.config}}
|
||
|
{{.middleware}}
|
||
|
}
|
||
|
|
||
|
func NewServiceContext(c {{.config}}) *ServiceContext {
|
||
|
return &ServiceContext{
|
||
|
Config: c,
|
||
|
{{.middlewareAssignment}}
|
||
|
}
|
||
|
}
|