aboutsummaryrefslogtreecommitdiff
path: root/bindings/go
AgeCommit message (Collapse)Author
2016-09-03bindings: move go bindings to contribDavid Bremner
This signals two things, an intent to be more liberal about accepting patches, and an intent to stop distributing the bindings if maintenance doesn't pick up.
2016-06-05Use https instead of http where possibleDaniel Kahn Gillmor
Many of the external links found in the notmuch source can be resolved using https instead of http. This changeset addresses as many as i could find, without touching the e-mail corpus or expected outputs found in tests.
2015-03-08go: add binding for notmuch_message_get_dateTrevor Jim
2014-09-16go: add return status to database close methodPeter Wang
Add return status to the Database.Close() method that calls notmuch_database_destroy.
2013-06-03bindings/go: Start a .gitignore for go bindings.David Bremner
In particular ignore downloaded source from github.com
2013-05-03go: use a different goconfig packageJustus Winter
The notmuch-addrlookup utility uses a third party library to read the notmuch configuration file. The previously used implementation at "github.com/kless/goconfig" vanished, so this patch switches to the implementation at "github.com/msbranco/goconfig". As the implementations differ at the API level, the code is updated accordingly. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-15go: Update for changes to notmuch_database_get_directoryAustin Clements
2012-05-11go: format the souce code using gofmtJustus Winter
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: update the build systemJustus Winter
The new "go" utility does not require any Makefiles to compile go packages and programs. Remove the old Makefiles and replace the top level Makefile with one defining some convenience targets for compiling the notmuch bindings and the notmuch-addrlookup utility. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: update the addrlookup utility to go 1Justus Winter
Use the new built in error type that replaces os.Error, adapt the code to the fact that strings.Split has just two arguments now. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: set LDFLAGS to -lnotmuch in the packages source fileJustus Winter
Set the LDFLAGS to -lnotmuch so the resulting go package will be linked with libnotmuch. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: reorganize the go bindingsJustus Winter
go 1 introduced the "go" program that simplifies building of libraries and programs. This patch reorganizes the go code so it can be compiled using the new utility, it does not change any files. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: define the constant STATUS_UNBALANCED_ATOMICJustus Winter
Add the constant STATUS_UNBALANCED_ATOMIC to the list of notmuch status codes. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: fix the notmuch status constantsJustus Winter
Formerly all the constants were set to zero since in golang constants are set to the previous value if no new value is specified. Use the iota operator that is incremented after each use to fix this issue. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-11go: update notmuch-addrlookup to the new APIJustus Winter
notmuch.OpenDatabase now returns a status indicating success or failure. Use this information to inform the user of any failures. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-05-05go: Update Go bindings for new notmuch_database_{open, create} signaturesAustin Clements
This requires changing the return types of NewDatabase and OpenDatabase to follow the standard Go convention for returning errors.
2012-05-04go: Update to the current notmuch_database_find_message APIAustin Clements
The signature of notmuch_database_find_message was changed in 02a30767 to report errors and the Go bindings were never updated. This brings the Go bindings in sync with that change and at least makes them compile with Go r60.3, the last release before Go 1.
2012-04-28go: Use notmuch_database_destroy instead of notmuch_database_closeJustus Winter
Adapt the go bindings to the notmuch_database_close split. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2011-02-03update for go-release-2011-02-01:Sebastien Binet
* M bindings/go/cmds/notmuch-addrlookup.go log.Exitf -> log.Fatalf
2011-01-26Migrate to goconfig pkgSebastien Binet
2011-01-26bindings/go: Add a todo fileSebastien Binet
2011-01-26A minor, cosmetic changeSebastien Binet
Just trying to keep the line lengths in check.
2011-01-26Initial import of Go bindings for notmuchSebastien Binet