Пример #1
0
func (t *TextField) FromFormField(data util.NestedMap, field *NodeField) {
	*t = TextField(data.Get(field.Id).(string))
}
Пример #2
0
func (t *DateTimeField) FromFormField(data util.NestedMap, field *NodeField) {
	time := data.Get(field.Id).(time.Time)
	*t = DateTimeField{Time: time}
}