go backend: fixed function defs and basic calling.