Fix go complete function