go: Rename query function to follow the new format