I sometimes take pellet food and place it front of his peeking hole. Acutally reach down to the bootm of the tank and place it right there. After a while, my goby actually knows that's what I'm about to do and he'll sit there and wait. 'Course he's gotte come back out and eat it before the shrimps and other fish get there. I drop food on the other side of the tank at the same time to keep the other fish busy/distracted.
"Life may not be the party we hoped for but while we are here we might as well dance!"