Skip to content

Commit 04a8e04

Browse files
normal-codernetworm
authored andcommitted
docs(go-git): correct misaligned newlines
1 parent b32a857 commit 04a8e04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
=== go-git
22

33
(((go-git)))(((Go)))
4-
如果你想将 Git 集成到用 Golang 编写的服务中,这里还有一个纯 Go 库的实现。这个库的实现没有任何原生依赖,因此不易出现手动管理内存的错误。
4+
如果你想将 Git 集成到用 Golang 编写的服务中,这里还有一个纯 Go 库的实现。
5+
这个库的实现没有任何原生依赖,因此不易出现手动管理内存的错误。
56
它对于标准 Golang 性能分析工具(如 CPU、内存分析器、竞争检测器等)也是透明的。
67

78
go-git 专注于可扩展性、兼容性并支持大多数管道 API,记录在 https://github.com/go-git/go-git/blob/master/COMPATIBILITY.md[].
@@ -55,8 +56,7 @@ r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{
5556
例如,https://github.com/go-git/go-git/tree/master/_examples/storage[] 允许你在 Aerospike 数据库中存储引用、对象和配置。
5657

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

6161
另一个高级用例包括一个可微调的 HTTP 客户端,例如 https://github.com/go-git/go-git/blob/master/_examples/custom_http/main.go[] 中的案例。
6262

0 commit comments

Comments
 (0)