go: move `id`s to kept elements
@ -17,6 +17,7 @@ module Docs
css('#plusone', '#nav', '.pkgGopher', '#footer', '.collapsed', '.permalink', '#pkg-callgraph').remove
css('span[style]', '.toggleVisible', '.expanded', 'div.toggle').each do |node|
node.first_element_child['id'] = node['id'] if node['id']
node.before(node.children).remove
end
@ -1,7 +1,7 @@
module Docs
class Go < UrlScraper
self.type = 'go'
self.release = '1.11.2'
self.release = '1.12'
self.base_url = 'https://golang.org/pkg/'
self.links = {
home: 'https://golang.org/',