Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace old golang.org links with new go.dev #1271

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading