// InterpretTemplate interprets a template record and adds a name to the interpreted fields, if
// a given {EnterpriseID,FieldID} can be find in the dictionary.
InterpretTemplate interprets a template record and adds a name to the interpreted fields, if
a given {EnterpriseID,FieldID} can be find in the dictionary.
// InterpretTemplate interprets a template record and adds a name to the interpreted fields if // a given { EnterpriseID FieldID } can be find in the dictionary .
func (i *Interpreter) InterpretTemplate(rec TemplateRecord) []InterpretedTemplateFieldSpecifier {
	fieldList := make([]InterpretedTemplateFieldSpecifier, len(rec.FieldSpecifiers))
	for j, field := range rec.FieldSpecifiers {
		fieldList[j].TemplateFieldSpecifier = field
		if entry, ok := i.dictionary[dictionaryKey{field.EnterpriseID, field.FieldID}]; ok {
			fieldList[j].Name = entry.Name
		}
	}
	return fieldList
}
func ( i * Interpreter ) InterpretTemplate ( rec TemplateRecord ) [ ] InterpretedTemplateFieldSpecifier { fieldList := make ( [ ] InterpretedTemplateFieldSpecifier , len ( rec . FieldSpecifiers ) ) for j , field := range rec . FieldSpecifiers { fieldList [ j ] . TemplateFieldSpecifier = field if entry , ok := i . dictionary [ dictionaryKey { field . EnterpriseID , field . FieldID } ] ; ok { fieldList [ j ] . Name = entry . Name } } return fieldList }
InterpretTemplate interprets a template record and adds a name to the interpreted fields, if
a given {EnterpriseID,FieldID} can be find in the dictionary.
InterpretTemplate interprets a template record and adds a name to the interpreted fields if a given { EnterpriseID FieldID } can be find in the dictionary .