[PATCH] go: add binding for notmuch_message_get_date

David Bremner david at tethera.net
Tue Mar 3 06:10:25 PST 2015


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

>On Mon, Mar 02 2015, Trevor Jim <tjim at 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



More information about the notmuch mailing list