Skip to content

Commit

Permalink
Update Go documentation (1.24.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Feb 12, 2025
1 parent e50a042 commit a672413
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/docs/scrapers/go.rb
Original file line number Diff line number Diff line change
@@ -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/',
Expand All @@ -10,10 +10,19 @@ class Go < UrlScraper

# 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'
Expand Down

0 comments on commit a672413

Please sign in to comment.