merge swrap_template into main/generate.go