CBIT-532: Use go and fix build errors.

Change-Id: I394986c82ff44210c28c0a108daa846d24c36f40
Reviewed-on: http://review.couchbase.org/36162
Tested-by: Eric Limare <eric.limare@couchbase.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>
Reviewed-by: Eric Limare <eric.limare@couchbase.com>