예제 #1
0
func marshalInterface(translations []translation.Translation) []interface{} {
	mi := make([]interface{}, len(translations))
	for i, translation := range translations {
		mi[i] = translation.MarshalInterface()
	}
	return mi
}
예제 #2
0
파일: sifter.go 프로젝트: rtfb/sifter
func marshalInterface(translations StringMap) []interface{} {
	mi := make([]interface{}, 0)
	for _, translation := range translations {
		mi = append(mi, translation.MarshalInterface())
	}
	return mi
}