From 07a85c1c4fc3c5c37f90d5319267b9d81c4a2999 Mon Sep 17 00:00:00 2001 From: Maciej Lisiewski Date: Wed, 5 Dec 2018 15:15:54 -0500 Subject: [PATCH] Fix test - you need an exported field to unmarshal --- bond_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bond_test.go b/bond_test.go index 12c0595..3b6afd9 100644 --- a/bond_test.go +++ b/bond_test.go @@ -257,7 +257,7 @@ func TestSlices(t *testing.T) { func TestSelectOnlyIDs(t *testing.T) { var ids []struct { - id int64 `db:"id"` + Id int64 `db:"id"` } err := DB.Account.Find(db.Cond{}).Select("id").All(&ids) assert.NoError(t, err)