Go的git库 [英] git library for Go

查看:303
本文介绍了Go的git库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为一个宠物项目,我想开发一个使用git作为存储后端的应用程序。 (我怀疑这还不存在,鉴于这家伙的博客文章: http://jarofgreen.co.uk/2012/08/how-about-a-mobile-note-app-backed-by-git/



现在,我想以此为契机与Go一起玩一下。但是,我似乎无法找到任何(甚至没有最小的方法)Go的git库。
实际上有没有?



显然我对Go的了解是不存在的,所以为libgit编写绑定似乎并不是一种有趣的方式。 (我可能会诉诸ruby,我也不知道)

解决方案

我会说 git2go 是Go中使用的git绑定库。它定期更新并由运行libgit2的人维护。



如果您正在寻找纯粹用Go编写的git实现, go-git from source {d } 是最成熟和最活跃的选择。


As a pet project, I want to develop a note taking app using git as storage backend. (I suspect this doesn't exist yet, given this guy's blog post: http://jarofgreen.co.uk/2012/08/how-about-a-mobile-note-app-backed-by-git/ )

Now, I'd like to take this as an opportunity to play around with Go a bit. However, I cannot seem to find any (not even the tiniest approach to) git library for Go. Is there actually any?

Obviously my knowledge of Go is non-existant, so writing bindings for libgit doesn't seem a fun way to start... (and I would probably resort to ruby, which I don't know either)

解决方案

I'd say git2go is the git bindings library to use in Go. It is updated regularly and maintained by the people running libgit2.

If you are looking for a git implementation purely written in Go, go-git from source{d} is the most mature and active option.

这篇关于Go的git库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆