Fix Errors Reported by Go Vet

Change-Id: Ib43dab8b388cf67522e90236e4a6b97b151fc224
Reviewed-on: http://review.couchbase.org/38963
Reviewed-by: John Liang <johliang00@gmail.com>
Reviewed-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>
Tested-by: Deepkaran Salooja <deepkaran.couchbase@gmail.com>