I used goctL-go-compact to merge the handler code and the resulting code had the wrong function parameter type. Found a missing ‘&’.