Re: [PATCH] go: add binding for notmuch_message_get_date

Subject: Re: [PATCH] go: add binding for notmuch_message_get_date

Date: Tue, 03 Mar 2015 15:10:25 +0100

To: Tomi Ollila, Trevor Jim, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> writes:

>On Mon, Mar 02 2015, Trevor Jim <tjim@mac.com> wrote:
>>  
>> -// TODO: wrap notmuch_message_get_date
>> +func  (self *Message) GetDate() int64 {
>> +	if self.message == nil {
>> +		return -1
>
> -1 is 1969-dec-31 23:59:59 UTC
>
> Should we care -- and e.g. return status in separate return value ?

Given the current troubles with the main library API and missing status
values, I'd say in the long run we'll be happier with a real status
return. OTOH, I don't much about go.

d


Thread: