func convAppend(vi []interface{}, i *string, x interface{}) []interface{} { if *i == "id" { *i = "_id" vi = append(vi, convert.DecodeIdP(x.(string))) } else { vi = append(vi, x) } return vi }
func decodeId(s string) string { val := convert.DecodeIdP(s) return val.Hex() }