From a6724138297f6924bfe4a1068ca5721c47b2c138 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 12 Feb 2025 08:34:45 +0100 Subject: [PATCH] Update Go documentation (1.24.0) --- lib/docs/scrapers/go.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/go.rb b/lib/docs/scrapers/go.rb index 767db080..2b795a8c 100644 --- a/lib/docs/scrapers/go.rb +++ b/lib/docs/scrapers/go.rb @@ -1,7 +1,7 @@ module Docs class Go < UrlScraper self.type = 'go' - self.release = '1.23.0' + self.release = '1.24.0' self.base_url = 'https://golang.org/pkg/' self.links = { home: 'https://golang.org/', @@ -10,10 +10,19 @@ 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.23.0 + # podman run --net host --rm -it docker.io/golang:1.24.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 + + # or using alpine + # podman run --net host --rm -it alpine:latest + #podman# apk add curl + #podman# curl -LO https://go.dev/dl/go1.24.0.linux-amd64.tar.gz + #podman# tar xf go1.24.0.linux-amd64.tar.gz + #podman# go/bin/go install golang.org/x/tools/cmd/godoc@latest + #podman# /root/go/bin/godoc -http 0.0.0.0:6060 -v + self.base_url = 'http://localhost:6060/pkg/' html_filters.push 'clean_local_urls'