Sorry to hear the bad news matey - the main thing now is preventing suffering for the dog and celebrate all the fun you have had with him and the joy he has obviously brought you all over the years
We have three cats, I have had mine for 15 years now, and would be gutted if I lost him so can sympaphise with you.
Chin up buddy