We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0529f80 commit 5ac8d55Copy full SHA for 5ac8d55
1 file changed
lib/docs/scrapers/go.rb
@@ -25,13 +25,8 @@ class Go < UrlScraper
25
HTML
26
27
def get_latest_version(opts)
28
- doc = fetch_doc('https://golang.org/pkg/', opts)
29
-
30
- footer = doc.at_css('#footer').content
31
- version = footer.scan(/go([0-9.]+)/)[0][0]
32
- version = version[0...-1] if version.end_with?('.')
33
34
- version
+ doc = fetch_doc('https://golang.org/project/', opts)
+ doc.at_css('#page ul > li > a').text[3..-1]
35
end
36
37
private
0 commit comments