Ticket #5866: add minimum space check to go language datawriter