I'm very sorry for your loss, James.
It can be harder, I've found, dealing with the death of a loved pet then dealing with the loss of a loved human. But take solace; your dog was lucky to have lived his life with the likes of you and I'm sure he/she passed on all the better for being loved and cared for by you.