Detect HTML Version of document from string, url or file
go get github.com/lestoni/html-version
Detect from html document string
htmlDocument := `<!DOCTYPE html>
<html>
<head></head>
<body>
<h1>Title</h1>
</body>
</html>`
version := HTMLVersion.DetectFromString(htmlDocument)
Detect From URL
version, err := HTMLVersion.DetectFromURL("http://golang.org/")
Detect From File
version, err := HTMLVersion.DetectFromFile("testdata/test.html")