···11111212var (
1313 date = flag.String("date", time.Now().Format(time.DateOnly), "Date of the CVE")
1414+ cPlusPlus = flag.Bool("c++", false, "If true, the project is written in C++")
1415 cve = flag.String("cve", "", "CVE number")
1516 cveLink = flag.String("cve-link", "", "CVE link")
1617 project = flag.String("project", "", "Project name")
···2829 }
2930 defer fout.Close()
30313131- name := faker.Name()
3232-3333- data := map[string]string{
3232+ data := map[string]any{
3433 "Date": *date,
3534 "CVE": *cve,
3635 "CVELink": *cveLink,
3736 "Project": *project,
3837 "ProjectLink": *projectLink,
3938 "Summary": *summary,
4040- "Name": name,
3939+ "Name": faker.Name(),
4040+ "CPlusPlus": *cPlusPlus,
4141 }
42424343 tmpl := template.Must(template.New("article").Parse(articleTemplate))
···59596060In the hours following the release of [{{.CVE}}]({{.CVELink}}) for the project [{{.Project}}]({{.ProjectLink}}), site reliability workers
6161and systems administrators scrambled to desperately rebuild and patch all their systems to fix {{.Summary}}. This is due to the affected components being
6262-written in C, the only programming language where these vulnerabilities regularly happen. "This was a terrible tragedy, but sometimes
6262+written in C{{if .CPlusPlus}}++{{end}}, the only programming language where these vulnerabilities regularly happen. "This was a terrible tragedy, but sometimes
6363these things just happen and there's nothing anyone can do to stop them," said programmer {{.Name}}, echoing statements
6464expressed by hundreds of thousands of programmers who use the only language where 90% of the world's memory safety vulnerabilities have
6565occurred in the last 50 years, and whose projects are 20 times more likely to have security vulnerabilities. "It's a shame, but what can