Beyond just mailing list etiquette, you'll probably get better responses if you provide your code in plain text. I think that some of the more responsive people in golang-nuts use text-only email viewers, though that's only a guess!
I took the liberty of transcribing this one, free of charge :)
func (a *Agent) GatherCandidates() error {
a.mtx.Lock()
defer a.mtx.Unlock()
fmt.Println("GatherCandidates11111")
rv := int(C.nice_agent_gather_candidates(a.agent, C.guint(a.stream)))
if rv == 0 {
return errors.New("failed to gather candidates")
}
fmt.Println("GatherCandidates22222")
return nil
}