package controller import "SciencesServer/app/service" type Config struct{ *service.Session } type ConfigHandle func(session *service.Session) *Config func NewConfig() ConfigHandle { return func(session *service.Session) *Config { return &Config{Session: session} } }