// Code scaffolded by goctl. Safe to edit. // goctl 1.10.1 package svc import ( "gateway/internal/config" "gateway/internal/library/validate" ) type ServiceContext struct { Config config.Config Validator validate.Validate } func NewServiceContext(c config.Config) *ServiceContext { v, err := validate.NewWithDefaultEN() if err != nil { panic(err) } return &ServiceContext{ Config: c, Validator: v, } }