cmd/cover: add <title> tag to html template used for code coverage reports

This code change adds a title element to the HTML template used by cover
command to generate go code coverage reports. The title used is "Go Coverage
Report". A title tag is required in HTML documents for most situations.

See NOTES section of <head> element at
https://www.w3.org/TR/html52/document-metadata.html#elementdef-head
This commit is contained in:
David Carter 2020-04-08 11:32:03 -07:00
parent 94d22d12fa
commit 6d519dc9dd
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ const tmplHTML = `
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Go Coverage Report</title>
<style>
body {
background: black;