https://github.com/lestoni/html-version
Detect Version of HTML Document
https://github.com/lestoni/html-version
detection golang html
Last synced: 8 months ago
JSON representation
Detect Version of HTML Document
- Host: GitHub
- URL: https://github.com/lestoni/html-version
- Owner: lestoni
- Created: 2018-08-28T06:41:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-17T19:35:28.000Z (over 7 years ago)
- Last Synced: 2025-06-10T23:42:20.750Z (about 1 year ago)
- Topics: detection, golang, html
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTML Version
Detect HTML Version of document from string, url or file
## Installation
`go get github.com/lestoni/html-version`
## Usage
Detect from html document string
```
htmlDocument := `
Title
`
version := HTMLVersion.DetectFromString(htmlDocument)
```
Detect From URL
```
version, err := HTMLVersion.DetectFromURL("http://golang.org/")
```
Detect From File
```
version, err := HTMLVersion.DetectFromFile("testdata/test.html")
```
---
[](https://godoc.org/github.com/lestoni/html-version)

