Replace old golang.org links with new go.dev (#1271)
Some checks are pending
CI / test (map[go:1.22.10 golangci:latest]) (push) Waiting to run
CI / test (map[go:1.23.4 golangci:latest]) (push) Waiting to run
CI / coverage (push) Blocked by required conditions
Security Scan / build (push) Waiting to run

This commit is contained in:
Oleksandr Redko 2024-12-16 16:18:51 +02:00 committed by GitHub
parent 4fda076e5d
commit 92de0ee7a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View file

@ -308,7 +308,7 @@ func main() {
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
@ -355,7 +355,7 @@ comment.
### Build tags ### Build tags
gosec is able to pass your [Go build tags](https://golang.org/pkg/go/build/) to the analyzer. gosec is able to pass your [Go build tags](https://pkg.go.dev/go/build/) to the analyzer.
They can be provided as a comma separated list as follows: They can be provided as a comma separated list as follows:
```bash ```bash

View file

@ -47,7 +47,7 @@ func doGetIdentExpr(expr ast.Expr, hasSelector bool) (*ast.Ident, bool) {
} }
func (r *implicitAliasing) Match(n ast.Node, c *gosec.Context) (*issue.Issue, error) { func (r *implicitAliasing) Match(n ast.Node, c *gosec.Context) (*issue.Issue, error) {
// This rule does not apply for Go 1.22, see https://tip.golang.org/doc/go1.22#language. // This rule does not apply for Go 1.22, see https://go.dev/doc/go1.22#language.
major, minor, _ := gosec.GoVersion() major, minor, _ := gosec.GoVersion()
if major >= 1 && minor >= 22 { if major >= 1 && minor >= 22 {
return nil, nil return nil, nil

View file

@ -20,7 +20,7 @@ func main() {
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
@ -54,7 +54,7 @@ func main() {
TLSClientConfig: &tls.Config{MinVersion: 0}, TLSClientConfig: &tls.Config{MinVersion: 0},
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
@ -164,7 +164,7 @@ func main() {
TLSClientConfig: &tls.Config{MinVersion: theValue}, TLSClientConfig: &tls.Config{MinVersion: theValue},
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
@ -185,7 +185,7 @@ func main() {
TLSClientConfig: &tls.Config{MaxVersion: 0}, TLSClientConfig: &tls.Config{MaxVersion: 0},
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
@ -211,7 +211,7 @@ func main() {
}, },
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }
@ -235,7 +235,7 @@ func main() {
}, },
} }
client := &http.Client{Transport: tr} client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/") _, err := client.Get("https://go.dev/")
if err != nil { if err != nil {
fmt.Println(err) fmt.Println(err)
} }