|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
module Docs
|
|
|
|
|
class Go < UrlScraper
|
|
|
|
|
self.type = 'go'
|
|
|
|
|
self.release = '1.22.0'
|
|
|
|
|
self.release = '1.23.0'
|
|
|
|
|
self.base_url = 'https://golang.org/pkg/'
|
|
|
|
|
self.links = {
|
|
|
|
|
home: 'https://golang.org/',
|
|
|
|
@ -10,7 +10,7 @@ module Docs
|
|
|
|
|
|
|
|
|
|
# Run godoc locally, since https://golang.org/pkg/ redirects to https://pkg.go.dev/std with rate limiting / scraping protection.
|
|
|
|
|
|
|
|
|
|
# podman run --net host --rm -it docker.io/golang:1.21.5
|
|
|
|
|
# podman run --net host --rm -it docker.io/golang:1.23.0
|
|
|
|
|
#podman# go install golang.org/x/tools/cmd/godoc@latest
|
|
|
|
|
#podman# rm -r /usr/local/go/test/
|
|
|
|
|
#podman# godoc -http 0.0.0.0:6060 -v
|
|
|
|
|