Skip to content

Commit

Permalink
Replace old golang.org links with new go.dev (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Dec 16, 2024
1 parent 4fda076 commit 92de0ee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func main() {
}

client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand Down Expand Up @@ -355,7 +355,7 @@ comment.

### 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:

```bash
Expand Down
2 changes: 1 addition & 1 deletion rules/implicit_aliasing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
// 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()
if major >= 1 && minor >= 22 {
return nil, nil
Expand Down
14 changes: 7 additions & 7 deletions testutils/g402_samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand Down Expand Up @@ -54,7 +54,7 @@ func main() {
TLSClientConfig: &tls.Config{MinVersion: 0},
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand Down Expand Up @@ -164,7 +164,7 @@ func main() {
TLSClientConfig: &tls.Config{MinVersion: theValue},
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand All @@ -185,7 +185,7 @@ func main() {
TLSClientConfig: &tls.Config{MaxVersion: 0},
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand All @@ -211,7 +211,7 @@ func main() {
},
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand All @@ -230,12 +230,12 @@ import (
func main() {
tr := &http.Transport{
TLSClientConfig: &tls.Config{
MaxVersion: 0,
MaxVersion: 0,
MinVersion: tls.VersionTLS13,
},
}
client := &http.Client{Transport: tr}
_, err := client.Get("https://golang.org/")
_, err := client.Get("https://go.dev/")
if err != nil {
fmt.Println(err)
}
Expand Down

0 comments on commit 92de0ee

Please sign in to comment.