Rename constructor functions to New...
This commit is contained in:
parent
19b241bd55
commit
507a204249
2
odb.go
2
odb.go
|
@ -22,7 +22,7 @@ type OdbBackend struct {
|
|||
Ptr *C.git_odb_backend
|
||||
}
|
||||
|
||||
func InitOdb() (odb *Odb, err error) {
|
||||
func NewOdb() (odb *Odb, err error) {
|
||||
odb = new(Odb)
|
||||
|
||||
ret := C.git_odb_new(&odb.ptr)
|
||||
|
|
|
@ -45,7 +45,7 @@ func InitRepository(path string, isbare bool) (*Repository, error) {
|
|||
return repo, nil
|
||||
}
|
||||
|
||||
func InitRepositoryByWrapOdb(odb *Odb) (repo *Repository, err error) {
|
||||
func NewRepositoryWrapOdb(odb *Odb) (repo *Repository, err error) {
|
||||
repo = new(Repository)
|
||||
|
||||
ret := C.git_repository_wrap_odb(&repo.ptr, odb.ptr)
|
||||
|
|
Loading…
Reference in New Issue