Let him go peacefully bet him and comfort him
Aww, I'm so sorry. Losing your dog is a difficult thing to have happen....just love him, comfort him, remember all the joy your doggie has brought to you, he will always live in your heart.
If the vet says he's dying and he has no quality of life, the kindest thing is to take him to the vet and let him go peacefully. When our fur babies are at the end of their lives the best and most loving thing we can do is help them leave this world with the gentle help of the vet. I'm so very sorry your dear friend is so ill.