Skip to content

Commit 54eecb8

Browse files
authored
docs: Replace godoc.org with pkg.go.dev (#3301)
1 parent e56d378 commit 54eecb8

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

example/commitpr/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//
1414
// Note, if you want to push a single file, you probably prefer to use the
1515
// content API. An example is available here:
16-
// https://godoc.org/github.com/google/go-github/github#example-RepositoriesService-CreateFile
16+
// https://pkg.go.dev/github.com/google/go-github/github#example-RepositoriesService-CreateFile
1717
//
1818
// Note, for this to work at least 1 commit is needed, so you if you use this
1919
// after creating a repository you might want to make sure you set `AutoInit` to
@@ -168,7 +168,7 @@ func pushCommit(ref *github.Reference, tree *github.Tree) (err error) {
168168
return err
169169
}
170170

171-
// createPR creates a pull request. Based on: https://godoc.org/github.com/google/go-github/github#example-PullRequestsService-Create
171+
// createPR creates a pull request. Based on: https://pkg.go.dev/github.com/google/go-github/github#example-PullRequestsService-Create
172172
func createPR() (err error) {
173173
if *prSubject == "" {
174174
return errors.New("missing `-pr-title` flag; skipping PR creation")

github/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The services of a client divide the API into logical chunks and correspond to
3131
the structure of the GitHub API documentation at
3232
https://docs.github.com/rest .
3333
34-
NOTE: Using the https://godoc.org/context package, one can easily
34+
NOTE: Using the https://pkg.go.dev/context package, one can easily
3535
pass cancelation signals and deadlines to various services of the client for
3636
handling a request. In case there is no context available, then context.Background()
3737
can be used as a starting point.

github/examples_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func ExampleRepositoriesService_CreateFile() {
7272
// so you will need to modify the example to provide an oauth client to
7373
// github.NewClient() instead of nil. See the following documentation for more
7474
// information on how to authenticate with the client:
75-
// https://godoc.org/github.com/google/go-github/github#hdr-Authentication
75+
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
7676
client := github.NewClient(nil)
7777

7878
ctx := context.Background()
@@ -117,7 +117,7 @@ func ExamplePullRequestsService_Create() {
117117
// so you will need to modify the example to provide an oauth client to
118118
// github.NewClient() instead of nil. See the following documentation for more
119119
// information on how to authenticate with the client:
120-
// https://godoc.org/github.com/google/go-github/github#hdr-Authentication
120+
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
121121
client := github.NewClient(nil)
122122

123123
newPR := &github.NewPullRequest{
@@ -146,7 +146,7 @@ func ExampleTeamsService_ListTeams() {
146146
// the example to provide an oauth client to github.NewClient() instead of nil.
147147
// See the following documentation for more information on how to authenticate
148148
// with the client:
149-
// https://godoc.org/github.com/google/go-github/github#hdr-Authentication
149+
// https://pkg.go.dev/github.com/google/go-github/github#hdr-Authentication
150150
client := github.NewClient(nil)
151151

152152
teamName := "Developers team"

scrape/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![GoDoc](https://godoc.org/github.com/google/go-github/scrape?status.svg)](https://godoc.org/github.com/google/go-github/scrape)
1+
[![Go Reference](https://pkg.go.dev/badge/github.com/google/go-github/scrape.svg)](https://pkg.go.dev/github.com/google/go-github/scrape)
22

33
The scrape package provides an experimental client for accessing additional
44
GitHub data via screen scraping. It is designed to be a client of last resort

0 commit comments

Comments
 (0)