diff options
| author | Ben Burkert <[email protected]> | 2015-01-08 11:03:15 -0800 |
|---|---|---|
| committer | Ben Burkert <[email protected]> | 2015-01-08 11:03:15 -0800 |
| commit | 04e3c7f6cd965baca20309439abbbd5986c73e86 (patch) | |
| tree | 3e244afa3e671ab6e4ce658137d347b8e1486673 /note.go | |
| parent | 4989fc5a15123debf82b2c1232cf511ec9ee4c15 (diff) | |
define Note methods on pointers
Diffstat (limited to 'note.go')
| -rw-r--r-- | note.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -27,25 +27,25 @@ func (n *Note) Free() error { } // Author returns the signature of the note author -func (n Note) Author() *Signature { +func (n *Note) Author() *Signature { ptr := C.git_note_author(n.ptr) return newSignatureFromC(ptr) } // Id returns the note object's id -func (n Note) Id() *Oid { +func (n *Note) Id() *Oid { ptr := C.git_note_id(n.ptr) return newOidFromC(ptr) } // Committer returns the signature of the note committer -func (n Note) Committer() *Signature { +func (n *Note) Committer() *Signature { ptr := C.git_note_committer(n.ptr) return newSignatureFromC(ptr) } // Message returns the note message -func (n Note) Message() string { +func (n *Note) Message() string { return C.GoString(C.git_note_message(n.ptr)) } |
