Skip to content

Commit b32a857

Browse files
normal-codernetworm
authored andcommitted
docs(go-git): update go-git's github repository url
1 parent 03bfddc commit b32a857

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
如果你想将 Git 集成到用 Golang 编写的服务中,这里还有一个纯 Go 库的实现。这个库的实现没有任何原生依赖,因此不易出现手动管理内存的错误。
55
它对于标准 Golang 性能分析工具(如 CPU、内存分析器、竞争检测器等)也是透明的。
66

7-
go-git 专注于可扩展性、兼容性并支持大多数管道 API,记录在 https://github.com/src-d/go-git/blob/master/COMPATIBILITY.md[].
7+
go-git 专注于可扩展性、兼容性并支持大多数管道 API,记录在 https://github.com/go-git/go-git/blob/master/COMPATIBILITY.md[].
88

99
以下是使用 Go API 的基本示例:
1010

@@ -52,13 +52,13 @@ r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
5252
-----
5353

5454
可插拔存储提供了许多有趣的选项。
55-
例如,https://github.com/src-d/go-git/tree/master/_examples/storage[] 允许你在 Aerospike 数据库中存储引用、对象和配置。
55+
例如,https://github.com/go-git/go-git/tree/master/_examples/storage[] 允许你在 Aerospike 数据库中存储引用、对象和配置。
5656

5757
另一个特性是灵活的文件系统抽象。
5858
使用 https://godoc.org/github.com/src-d/go-billy#Filesystem[]
5959
可以很容易以不同的方式存储所有文件,即通过将所有文件打包到磁盘上的单个归档文件或保存它们都在内存中。
6060

61-
另一个高级用例包括一个可微调的 HTTP 客户端,例如 https://github.com/src-d/go-git/blob/master/_examples/custom_http/main.go[] 中的案例。
61+
另一个高级用例包括一个可微调的 HTTP 客户端,例如 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
==== 延伸阅读
8484

8585
对 go-git 功能的全面介绍超出了本书的范围。
86-
如果您想了解有关 go-git 的更多信息,请参阅 https://godoc.org/gopkg.in/src-d/go-git.v4[] 上的 API 文档, 以及 https://github.com/src-d/go-git/tree/master/_examples[] 上的系列使用示例。
86+
如果您想了解有关 go-git 的更多信息,请参阅 https://godoc.org/gopkg.in/src-d/go-git.v4[] 上的 API 文档, 以及 https://github.com/go-git/go-git/tree/master/_examples[] 上的系列使用示例。

0 commit comments

Comments
 (0)