socket wrapper for go language