Rename constructor functions to New...

This commit is contained in:
Aidan Nulman 2013-12-19 17:24:44 -05:00
parent 19b241bd55
commit 507a204249
2 changed files with 2 additions and 2 deletions

2
odb.go
View File

@ -22,7 +22,7 @@ type OdbBackend struct {
Ptr *C.git_odb_backend Ptr *C.git_odb_backend
} }
func InitOdb() (odb *Odb, err error) { func NewOdb() (odb *Odb, err error) {
odb = new(Odb) odb = new(Odb)
ret := C.git_odb_new(&odb.ptr) ret := C.git_odb_new(&odb.ptr)

View File

@ -45,7 +45,7 @@ func InitRepository(path string, isbare bool) (*Repository, error) {
return repo, nil return repo, nil
} }
func InitRepositoryByWrapOdb(odb *Odb) (repo *Repository, err error) { func NewRepositoryWrapOdb(odb *Odb) (repo *Repository, err error) {
repo = new(Repository) repo = new(Repository)
ret := C.git_repository_wrap_odb(&repo.ptr, odb.ptr) ret := C.git_repository_wrap_odb(&repo.ptr, odb.ptr)