Skip to content

Commit 92de0ee

Browse files
authoredDec 16, 2024··
Replace old golang.org links with new go.dev (#1271)
1 parent 4fda076 commit 92de0ee

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func main() {
308308
}
309309

310310
client := &http.Client{Transport: tr}
311-
_, err := client.Get("https://golang.org/")
311+
_, err := client.Get("https://go.dev/")
312312
if err != nil {
313313
fmt.Println(err)
314314
}
@@ -355,7 +355,7 @@ comment.
355355

356356
### Build tags
357357

358-
gosec is able to pass your [Go build tags](https://golang.org/pkg/go/build/) to the analyzer.
358+
gosec is able to pass your [Go build tags](https://pkg.go.dev/go/build/) to the analyzer.
359359
They can be provided as a comma separated list as follows:
360360

361361
```bash

‎rules/implicit_aliasing.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func doGetIdentExpr(expr ast.Expr, hasSelector bool) (*ast.Ident, bool) {
4747
}
4848

4949
func (r *implicitAliasing) Match(n ast.Node, c *gosec.Context) (*issue.Issue, error) {
50-
// This rule does not apply for Go 1.22, see https://tip.golang.org/doc/go1.22#language.
50+
// This rule does not apply for Go 1.22, see https://go.dev/doc/go1.22#language.
5151
major, minor, _ := gosec.GoVersion()
5252
if major >= 1 && minor >= 22 {
5353
return nil, nil

‎testutils/g402_samples.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
}
2121
2222
client := &http.Client{Transport: tr}
23-
_, err := client.Get("https://golang.org/")
23+
_, err := client.Get("https://go.dev/")
2424
if err != nil {
2525
fmt.Println(err)
2626
}
@@ -54,7 +54,7 @@ func main() {
5454
TLSClientConfig: &tls.Config{MinVersion: 0},
5555
}
5656
client := &http.Client{Transport: tr}
57-
_, err := client.Get("https://golang.org/")
57+
_, err := client.Get("https://go.dev/")
5858
if err != nil {
5959
fmt.Println(err)
6060
}
@@ -164,7 +164,7 @@ func main() {
164164
TLSClientConfig: &tls.Config{MinVersion: theValue},
165165
}
166166
client := &http.Client{Transport: tr}
167-
_, err := client.Get("https://golang.org/")
167+
_, err := client.Get("https://go.dev/")
168168
if err != nil {
169169
fmt.Println(err)
170170
}
@@ -185,7 +185,7 @@ func main() {
185185
TLSClientConfig: &tls.Config{MaxVersion: 0},
186186
}
187187
client := &http.Client{Transport: tr}
188-
_, err := client.Get("https://golang.org/")
188+
_, err := client.Get("https://go.dev/")
189189
if err != nil {
190190
fmt.Println(err)
191191
}
@@ -211,7 +211,7 @@ func main() {
211211
},
212212
}
213213
client := &http.Client{Transport: tr}
214-
_, err := client.Get("https://golang.org/")
214+
_, err := client.Get("https://go.dev/")
215215
if err != nil {
216216
fmt.Println(err)
217217
}
@@ -230,12 +230,12 @@ import (
230230
func main() {
231231
tr := &http.Transport{
232232
TLSClientConfig: &tls.Config{
233-
MaxVersion: 0,
233+
MaxVersion: 0,
234234
MinVersion: tls.VersionTLS13,
235235
},
236236
}
237237
client := &http.Client{Transport: tr}
238-
_, err := client.Get("https://golang.org/")
238+
_, err := client.Get("https://go.dev/")
239239
if err != nil {
240240
fmt.Println(err)
241241
}

0 commit comments

Comments
 (0)
Please sign in to comment.