Unified · Split
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class Go < UrlScraper |
| 3 | 3 | self.type = 'go' |
| 4 | − self.release = '1.17.5' | |
| 4 | + self.release = '1.18.0' | |
| 5 | 5 | self.base_url = 'https://golang.org/pkg/' |
| 6 | 6 | self.links = { |
| 7 | 7 | home: 'https://golang.org/', |
| @@ -10,9 +10,10 @@ module Docs · 2 unmodified lines | ||
| 10 | 10 | |
| 11 | 11 | # Run godoc locally, since https://golang.org/pkg/ redirects to https://pkg.go.dev/std with rate limiting / scraping protection. |
| 12 | 12 | |
| 13 | − # curl -LO https://golang.org/dl/go1.17.5.windows-amd64.zip | |
| 14 | − # go install golang.org/x/tools/cmd/godoc@latest | |
| 15 | − # go/bin/godoc -zip=go1.17.5.windows-amd64.zip -goroot=/go | |
| 13 | + # docker run --expose=6060 --rm -it docker.io/golang:1.18.0 | |
| 14 | + #docker# go install golang.org/x/tools/cmd/godoc@latest | |
| 15 | + #docker# rm -r /usr/local/go/test/ | |
| 16 | + #docker# godoc -http 0.0.0.0:6060 -v | |
| 16 | 17 | self.base_url = 'http://localhost:6060/pkg/' |
| 17 | 18 | |
| 18 | 19 | html_filters.push 'clean_local_urls' |