package controllers import ( "gitrepo.ru/neonxp/gorum/repository" ) type Router struct { userRepo *repository.User postRepo *repository.Post topicRepo *repository.Topic } func NewRouter(userRepo *repository.User, nodeRepo *repository.Post, topicRepo *repository.Topic) *Router { return &Router{ userRepo: userRepo, postRepo: nodeRepo, topicRepo: topicRepo, } }