Example #1
0
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
}
Example #2
0
func decodeId(s string) string {
	val := convert.DecodeIdP(s)
	return val.Hex()
}