Skip to content

Commit ab3cb21

Browse files
authored
Merge pull request #1399 from mcuadros/patch-1
Update go-git URL in Appendinx B: embedding
2 parents a552a64 + bd78682 commit ab3cb21

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

book/B-embedding-git/sections/go-git.asc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ In case you want to integrate Git into a service written in Golang, there also i
55
This implementation does not have any native dependencies and thus is not prone to manual memory management errors.
66
It is also transparent for the standard Golang performance analysis tooling like CPU, Memory profilers, race detector, etc.
77

8-
go-git is focused on extensibility, compatibility and supports most of the plumbing APIs, which is documented at https://github.com/src-d/go-git/blob/master/COMPATIBILITY.md[].
8+
go-git is focused on extensibility, compatibility and supports most of the plumbing APIs, which is documented at https://github.com/go-git/go-git/blob/master/COMPATIBILITY.md[].
99

1010
Here is a basic example of using Go APIs:
1111

1212
[source, go]
1313
-----
14-
import "gopkg.in/src-d/go-git.v4"
14+
import "github.com/go-git/go-git/v5"
1515
1616
r, err := git.PlainClone("/tmp/foo", false, &git.CloneOptions{
17-
URL: "https://github.com/src-d/go-git",
17+
URL: "https://github.com/go-git/go-git",
1818
Progress: os.Stdout,
1919
})
2020
-----
@@ -48,17 +48,17 @@ The default implementation is in-memory storage, which is very fast.
4848
[source, go]
4949
-----
5050
r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
51-
URL: "https://github.com/src-d/go-git",
51+
URL: "https://github.com/go-git/go-git",
5252
})
5353
-----
5454

5555
Pluggable storage provides many interesting options.
56-
For instance, https://github.com/src-d/go-git/tree/master/_examples/storage[] allows you to store references, objects, and configuration in an Aerospike database.
56+
For instance, https://github.com/go-git/go-git/tree/master/_examples/storage[] allows you to store references, objects, and configuration in an Aerospike database.
5757

5858
Another feature is a flexible filesystem abstraction.
59-
Using https://godoc.org/github.com/src-d/go-billy#Filesystem[] it is easy to store all the files in different way i.e by packing all of them to a single archive on disk or by keeping them all in-memory.
59+
Using https://pkg.go.dev/github.com/go-git/go-billy/v5?tab=doc#Filesystem[] it is easy to store all the files in different way i.e by packing all of them to a single archive on disk or by keeping them all in-memory.
6060

61-
Another advanced use-case includes a fine-tunable HTTP client, such as the one found at https://github.com/src-d/go-git/blob/master/_examples/custom_http/main.go[].
61+
Another advanced use-case includes a fine-tunable HTTP client, such as the one found at https://github.com/go-git/go-git/blob/master/_examples/custom_http/main.go[].
6262

6363
[source, go]
6464
-----
@@ -83,4 +83,4 @@ r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{URL: url})
8383
==== Further Reading
8484

8585
A full treatment of go-git's capabilities is outside the scope of this book.
86-
If you want more information on go-git, there's API documentation at https://godoc.org/gopkg.in/src-d/go-git.v4[], and a set of usage examples at https://github.com/src-d/go-git/tree/master/_examples[].
86+
If you want more information on go-git, there's API documentation at https://pkg.go.dev/github.com/go-git/go-git/v5[], and a set of usage examples at https://github.com/go-git/go-git/tree/master/_examples[].

0 commit comments

Comments
 (0)