我无法将数据分配给[] map [string] interface {}

I want to prepare conditions data for gorm.

email := c.Query("email")
count := c.Query("count")

filters := []map[string]interface{}{
    {"email": email},
    {"count": count},
}

I can take the datas at c.Query() lines.

After process "filters" variable's assignment line, I see the values as empty on debug.

You are making an slice of map[string]interface{}, when I suppose you want a map[string]interface{} (no slices), if that's the case you need something like this:

filters := map[string]interface{}{
    "email": email,
    "count": count,
}