package storage import ( "gitlab.com/wpetit/goweb/service" ) func ServiceProvider(userRepo UserRepository) service.Provider { srv := &Service{ userRepository: userRepo, } return func(ctn *service.Container) (interface{}, error) { return srv, nil } }