代码拉取完成,页面将自动刷新
// Package git is a low level and highly extensible git client library for
// reading repositories from git servers. It is written in Go from scratch,
// without any C dependencies.
//
// We have been following the open/close principle in its design to facilitate
// extensions.
//
// Small example extracting the commits from a repository:
// func ExampleBasic_printCommits() {
// r := git.NewMemoryRepository()
// o := &git.CloneOptions{
// URL: "https://github.com/src-d/go-git",
// }
// if err := r.Clone(o); err != nil {
// panic(err)
// }
//
// iter, err := r.Commits()
// if err != nil {
// panic(err)
// }
// defer iter.Close()
//
// for {
// commit, err := iter.Next()
// if err != nil {
// if err == io.EOF {
// break
// }
// panic(err)
// }
//
// fmt.Println(commit)
// }
// }
package git // import "gopkg.in/src-d/go-git.v4"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。