adding generator coded in golang