Example #1
0
func marshalInterface(translations []translation.Translation) []interface{} {
	mi := make([]interface{}, len(translations))
	for i, translation := range translations {
		mi[i] = translation.MarshalInterface()
	}
	return mi
}
Example #2
0
func marshalInterface(translations StringMap) []interface{} {
	mi := make([]interface{}, 0)
	for _, translation := range translations {
		mi = append(mi, translation.MarshalInterface())
	}
	return mi
}