translate send.c to go