“If you told me then that I would still be here winning medals at every edition since then I would tell you you were dreaming.
“It is great to see I can still do it against the younger guys.”
Walsh, who was also crowned world outdoor champion in London in 2017, added: “My goal for today was to throw 22m and win a medal. I did not quite get to 22 but I won gold so it is pretty good.
“I was glad I was able to build things up as the competition went on. Throwing last when you know you have won sometimes saps the energy out of you but, at other times, it can give you a boost, and that happened for me today.”