1
0
Эх сурвалжийг харах

Update Go documentation (1.24.0)

Simon Legner 10 сар өмнө
parent
commit
a672413829
1 өөрчлөгдсөн 11 нэмэгдсэн , 2 устгасан
  1. 11 2
      lib/docs/scrapers/go.rb

+ 11 - 2
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'