func AssignForm(form interface{}, data map[string]interface{}) {
	typ := reflect.TypeOf(form)
	val := reflect.ValueOf(form)
	if typ.Kind() == reflect.Ptr {
		typ = typ.Elem()
		val = val.Elem()
	}
	for i := 0; i < typ.NumField(); i++ {
		field := typ.Field(i)
		fieldName := field.Tag.Get("form")
		if fieldName == "-" {
			continue
		} else if len(fieldName) == 0 {
			fieldName = field.Name
		}
		data[fieldName] = val.Field(i).Interface()
	}
}
AssignForm assign form values back to the template data.
package form
import (
	"reflect"
	"github.com/flamego/binding"
	"github.com/flamego/template"
	"github.com/flamego/validator"
)