Import text/template in the generator

Hi. I converted gen.go to "text/template". The generated expr1.go is identical to the existing expr1.go, except for new-lines and some extra unused variables in switch statements.