func notEmpty(...interface{}) Validation {
	return func(value interface{}, builders ...interface{}) (interface{}, interface{}) {
		if value == nil {
			return nil, nil
		}
		if isZero(reflect.ValueOf(value)) {
			return nil, errors.New("CANNOT_BE_EMPTY")
		}
		return value, nil
	}
}
notEmpty - check that validated value is not empty if exists.
package livr
import (
	"errors"
	"reflect"
)
func anyObject(...interface{}) Validation {
	return func(value interface{}, builders ...interface{}) (interface{}, interface{}) {
		if value == nil || value == "" {
			return value, nil
		}
		if reflect.ValueOf(value).Kind() != reflect.Map {
			return nil, errors.New("FORMAT_ERROR")
		}
		if isZero(reflect.ValueOf(value)) {
			return nil, errors.New("FORMAT_ERROR")
		}
		return value, nil
	}
}