You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you want to integrate Git into a service written in Golang, there also is a pure Go library implementation.
5
-
This implementation does not have any native dependencies and thus is not prone to manual memory management errors.
6
-
It is also transparent for the standard Golang performance analysis tooling like CPU, Memory profilers, race detector, etc.
4
+
如果你想将 Git 集成到用 Golang 编写的服务中,这里还有一个纯 Go 库的实现。这个库的实现没有任何原生依赖,因此不易出现手动管理内存的错误。
5
+
它对于标准 Golang 性能分析工具(如 CPU、内存分析器、竞争检测器等)也是透明的。
7
6
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[].
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.
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.
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[].
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[].
85
+
对 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[] 上的系列使用示例。
0 commit comments