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.
|
package svc
|
|
|
|
import (
|
|
{{.configImport}}
|
|
)
|
|
|
|
type ServiceContext struct {
|
|
Config {{.config}}
|
|
{{.middleware}}
|
|
}
|
|
|
|
func NewServiceContext(c {{.config}}) *ServiceContext {
|
|
return &ServiceContext{
|
|
Config: c,
|
|
{{.middlewareAssignment}}
|
|
}
|
|
}
|