Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (17 sloc) 1022 Bytes

HTML meta tag version discovery

go-latest.HTMLMeta uses HTML meta tag to check latest version of your tool. It will request provided URL and inspec the HTML returned for meta tags that have the following format:

<meta name="go-latest" content="product-name SemVer message">
  • product-name is your tool name. It MUST be filled
  • SemVer is your tool version by Semantic Versioning. It MUST be filled
  • message is a message. It MAY be filled

For example, if you want to check latest version of reduce-worker, you just prepare a HTML page which contains following tags.

<meta name="go-latest" content="reduce-worker 1.2.3">

You can know latest version is 1.2.3.


go-latest's HTML meta tag version discovery specification refers following: