Versions in this module Expand all Collapse all v1 v1.0.5 Jun 8, 2024 v1.0.4 Jun 8, 2024 v1.0.3 Jun 8, 2024 v1.0.2 Jun 1, 2024 Changes in this version + const ERROR_POLICY_EMPTY + const ERROR_POLICY_FATAL + const ERROR_POLICY_NULL + const ERROR_POLICY_SKIP + const FLAG_CREATED + const FLAG_REMOVED + const FLAG_UPDATED + func AppendRemovedFields(arr *dvevaluation.DvVariable, dst []*dvevaluation.DvVariable, field string, ...) []*dvevaluation.DvVariable + func ConcatObjects(dst *dvevaluation.DvVariable, src *dvevaluation.DvVariable) + func ConvertAnyToDvVariable(s interface{}) (*dvevaluation.DvVariable, error) + func ConvertInterfaceIntoMap(v interface{}) (map[string]interface{}, bool) + func ConvertInterfaceIntoStringMap(v interface{}) (map[string]string, bool) + func ConvertStringToDvVariableIntoStringToInterface(v map[string]*dvevaluation.DvVariable) map[string]interface + func ConvertStringToDvVariableIntoStringToString(v map[string]*dvevaluation.DvVariable) map[string]string + func ConvertStringToInterfaceIntoStringToString(v map[string]interface{}) map[string]string + func ConvertStringToStringIntoStringToInterface(v map[string]string) map[string]interface + func CountChildren(val interface{}) int + func CreateLocalVariables(env *dvevaluation.DvObject, dat *dvevaluation.DvVariable) []string + func CreateObjectByArray(obj *dvevaluation.DvVariable, key string, value string, ...) (res *dvevaluation.DvVariable, err error) + func CreateQuickInfoByKeysForAny(data interface{}, ids []string) + func CrudGenerateHandlers(url string, params []string, urlPool *dvurl.UrlPool) error + func CrudGlobalInitialization(data map[string]string) error + func DvFieldArrayToBytes(val []*dvevaluation.DvVariable) []byte + func DvFieldInfoToStringConverter(v interface{}) (string, bool) + func FindChange(src *dvevaluation.DvVariable, ref *dvevaluation.DvVariable, field string, ...) (*dvevaluation.DvVariable, error) + func FindChangeAny(srcAny interface{}, refAny interface{}, field string, algorithm string, ...) (interface{}, error) + func FindChangeInArray(src *dvevaluation.DvVariable, ref *dvevaluation.DvVariable, field string, ...) (*dvevaluation.DvVariable, error) + func FindChangeInObject(src *dvevaluation.DvVariable, ref *dvevaluation.DvVariable, field string, ...) (*dvevaluation.DvVariable, error) + func FindDifferenceForAnyType(itemAny interface{}, otherAny interface{}, fillAdded bool, fillRemoved bool, ...) (added *dvevaluation.DvVariable, removed *dvevaluation.DvVariable, ...) + func GetMinifiedWithId(f *dvevaluation.DvVariable, env *dvevaluation.DvObject) *dvevaluation.DvVariable + func GetMinifiedWithSimpleFields(f *dvevaluation.DvVariable, env *dvevaluation.DvObject) *dvevaluation.DvVariable + func IsChangeUpdatedPossible(f *dvevaluation.DvVariable) bool + func IsEmptyAny(v interface{}) bool + func IterateFilterByExpression(val interface{}, expression string, env *dvevaluation.DvObject, ...) (res interface{}, err error) + func IterateFilterOnAnyType(val interface{}, processor FilterProcessor) interface + func IterateOnAnyType(val interface{}, processor IterateProcessor, initial interface{}) interface + func IterateSortByFields(val interface{}, fields []string, env *dvevaluation.DvObject) (res interface{}, err error) + func IterateSortOnAnyType(val interface{}, processor SortComparator) interface + func ParseAny(v interface{}) (res *dvevaluation.DvVariable, err error) + func PrintToJson(dvEntry *dvevaluation.DvVariable, indent int) []byte + func PrintToJsonAtLevel(dvEntry *dvevaluation.DvVariable, res []byte, level int, indent int, ...) []byte + func PrintToYaml(dvEntry *dvevaluation.DvVariable, indent int) []byte + func PrintToYamlAtLevel(dvEntry *dvevaluation.DvVariable, res []byte, level int, indent int, ...) []byte + func PrintToYamlPlainArray(dvEntry *dvevaluation.DvVariable, indent int) []byte + func ReadJsonChild(data []byte, childName string, rejectChildOfUndefined bool, ...) (*dvevaluation.DvVariable, error) + func ReadPathOfAny(item interface{}, childName string, rejectChildOfUndefined bool, ...) (*dvevaluation.DvVariable, *dvevaluation.DvVariable, error) + func RemoveByKeys(data *dvevaluation.DvVariable, keys []string, env *dvevaluation.DvObject) (*dvevaluation.DvVariable, error) + func RemoveLocalVariables(env *dvevaluation.DvObject, locals []string) + func RemovePathOfAny(item interface{}, childName string, rejectChildOfUndefined bool, ...) (*dvevaluation.DvVariable, *dvevaluation.DvVariable, error) + func ReplaceTextByObjectMap(s string, rules *dvevaluation.DvVariable) string + type DvFieldInfoExtra struct + FieldStatus int + type FilterProcessor func(string, interface{}, int, interface{}) (bool, bool) + type IterateProcessor func(string, interface{}, int, interface{}) (interface{}, bool) + type SortComparator func(d1 *dvevaluation.DvVariable, d2 *dvevaluation.DvVariable) int v1.0.0 May 16, 2020 Changes in this version + const ExtraReformatJsonProblemCleanExclamationInValue + const FIELD_ARRAY + const FIELD_BOOLEAN + const FIELD_EMPTY + const FIELD_NULL + const FIELD_NUMBER + const FIELD_OBJECT + const FIELD_STATUS_IS_ID + const FIELD_STRING + const MaxInt + const OPTIONS_ANY_OBJECT + const OPTIONS_FIELDS_DETAILED + const OPTIONS_FIELDS_ENTRIES + const OPTIONS_LOW_MASK + const OPTIONS_QUICK + const POST_STATE_ARRAY_CLOSE + const POST_STATE_NONE + const POST_STATE_OBJECT_CLOSE + const STATE_ARRAY_COMMA_OR_END_EXPECTED + const STATE_ARRAY_STARTED + const STATE_INITIAL + const STATE_INITIAL_ARRAY_STARTED + const STATE_INITIAL_ARRAY_WAITING_COMMA_OR_END + const STATE_OBJECT_COLON + const STATE_OBJECT_COMMA_OR_END_EXPECTED + const STATE_OBJECT_STARTED + const STATE_VALUE_STARTED + const STATE_WAITING_END + var LogCrud bool + var LogJson bool + var LogProcessors bool + var ProcessorFunctions = map[string]ProcessorFunction + func ConvertByteArrayToIntOrDouble(data []byte) (interface{}, bool) + func ConvertDvFieldInfoArrayIntoMap(data []*DvFieldInfo) map[string]*DvFieldInfo + func ConvertFieldItemArrayIntoMap(info *DvFieldInfo, keyField string, valueField string, defValue string) (res map[string]string, err error) + func ConvertSimpleKindAndValueToInterface(kind int, data []byte) (interface{}, bool) + func ConvertSimpleStringMapToJson(data map[string]string, includeBrackets bool) string + func ConvertStringArrayToByteByteArray(data []string) [][]byte + func ConvertToDouble(v interface{}) float64 + func ConvertToFloat(v interface{}) float32 + func ConvertToUnsignedLong(v interface{}) uint64 + func ExpressionEvaluation(expr string, resolver ExpressionResolver) (string, error) + func GetIntValueFromFieldMap(data map[string]*DvFieldInfo, fieldName string) (int, bool) + func GetKeyContentPecularities(key string) int + func GetNextPathPartByKey(key string) string + func GetStringValueFromFieldMap(data map[string]*DvFieldInfo, fieldName string) (string, bool) + func IsCurrentFormatJson(data []byte) bool + func IsJsonNumber(d []byte) bool + func IsJsonString(str []byte) bool + func IsValueSimple(v interface{}) bool + func MakeCrudHandler(crudInfo *DvCrudDetails) dvmeta.HandlerFunc + func MatchDvFieldInfo(model *DvFieldInfo, pattern *DvFieldInfo) bool + func QuoteEscapedJsonBytes(b []byte) []byte + func QuoteEscapedJsonBytesToString(b []byte) string + func QuoteEscapedJsonString(s string) string + func ReformatJson(json []byte, indent int, trash [][]byte, crlf int) ([]byte, error) + type DvCrud struct + IdName string + IdPrefix string + IdType string + Options string + Url string + type DvCrudDetails struct + type DvCrudInfo struct + Entities []DvCrud + type DvCrudItem struct + Id []byte + type DvCrudParsingInfo struct + Err string + Items []*DvCrudItem + Kind int + Value []byte + func JsonQuickParser(body []byte, crudDetails *DvCrudDetails, highLevelObject bool, mode int) *DvCrudParsingInfo + func (parseInfo *DvCrudParsingInfo) ConvertSimpleValueToInterface() (interface{}, bool) + func (parseInfo *DvCrudParsingInfo) GetDvFieldInfoHierarchy() []*DvFieldInfo + type DvFieldInfo struct + FieldStatus int + Fields []*DvFieldInfo + Kind int + Name []byte + Value []byte + func ConvertDvCrudItemToDvFieldInfo(src *DvCrudItem) (dst *DvFieldInfo) + func ConvertDvCrudParsingInfoToDvFieldInfo(crudParsingInfo *DvCrudParsingInfo) *DvFieldInfo + func CreateDvFieldInfoObject() *DvFieldInfo + func ExecuteProcessorFunction(name string, params string, parent *DvFieldInfo) (*DvFieldInfo, error) + func FindInArray(parent *DvFieldInfo, pattern *DvFieldInfo, fromIndex int) (*DvFieldInfo, error) + func JsonFullParser(body []byte) (*DvFieldInfo, error) + func ProcessorFind(parent *DvFieldInfo, params string) (*DvFieldInfo, error) + func ReadJsonAsDvFieldInfo(data []byte) (*DvFieldInfo, error) + func ReadYamlAsDvFieldInfo(data []byte) (*DvFieldInfo, error) + func (dvEntry *DvFieldInfo) PrintToJson(indent int) []byte + func (dvEntry *DvFieldInfo) PrintToJsonAtLevel(res []byte, level int, indent int, noIndentAtFirst bool) []byte + func (dvEntry *DvFieldInfo) PrintToYaml(indent int) []byte + func (dvEntry *DvFieldInfo) PrintToYamlAtLevel(res []byte, level int, indent int, noIndentAtFirst bool) []byte + func (field *DvFieldInfo) AddField(item *DvFieldInfo) bool + func (field *DvFieldInfo) AddStringField(key string, value string) bool + func (item *DvFieldInfo) ConvertSimpleValueToInterface() (interface{}, bool) + func (item *DvFieldInfo) ConvertValueToInterface() (interface{}, bool) + func (item *DvFieldInfo) GetStringValue() string + func (item *DvFieldInfo) ReadChild(childName string, resolver ExpressionResolver) (res *DvFieldInfo, err error) + func (item *DvFieldInfo) ReadChildStringValue(fieldName string) string + func (item *DvFieldInfo) ReadSimpleChild(fieldName string) *DvFieldInfo + func (item *DvFieldInfo) ReadSimpleChildValue(fieldName string) string + func (item *DvFieldInfo) ReadSimpleString() (string, error) + func (item *DvFieldInfo) ReadSimpleStringList(data []string) ([]string, error) + func (item *DvFieldInfo) ReadSimpleStringMap(data map[string]string) error + type ExpressionResolver func(string) (string, error) + type JsonWriter struct + CustomInfo interface{} + func CreateJsonWriter(fileName string, indent int, bufSize int, eol int, customInfo interface{}) (*JsonWriter, error) + func (w *JsonWriter) Close() + func (w *JsonWriter) EndArray() + func (w *JsonWriter) EndObject() + func (w *JsonWriter) Flush() + func (w *JsonWriter) GetError() error + func (w *JsonWriter) PrintKey(key string) + func (w *JsonWriter) PrintValueInteger(value int) + func (w *JsonWriter) PrintValueSimple(value string) + func (w *JsonWriter) PrintValueSmart(value interface{}) bool + func (w *JsonWriter) PrintValueString(value string) + func (w *JsonWriter) PutData(data ...byte) + func (w *JsonWriter) PutEscapedString(data []byte) + func (w *JsonWriter) RepeatData(data byte, n int) + func (w *JsonWriter) SetError(err error) + func (w *JsonWriter) SetErrorMessage(message string) + func (w *JsonWriter) StartArray() + func (w *JsonWriter) StartObject() + type OrderedItem struct + type OrderedMap struct + func CreateOrderedMap(n int) *OrderedMap + func CreateOrderedMapByArray(m []interface{}, base int) *OrderedMap + func CreateOrderedMapByMap(m map[interface{}]interface{}) *OrderedMap + func (m *OrderedMap) Get(k interface{}) (interface{}, bool) + func (m *OrderedMap) GetAt(pos int) (interface{}, interface{}) + func (m *OrderedMap) GetAtSafe(pos int) (interface{}, interface{}, bool) + func (m *OrderedMap) GetByInt64Key(k int64) (interface{}, bool) + func (m *OrderedMap) GetInt64ByInt64Key(k int64) (int64, bool) + func (m *OrderedMap) IsSimpleArray(base int) bool + func (m *OrderedMap) IsSimpleObject() bool + func (m *OrderedMap) Put(k interface{}, v interface{}) bool + func (m *OrderedMap) Remove(k interface{}) bool + func (m *OrderedMap) RemoveAt(pos int) bool + func (m *OrderedMap) Size() int + type ProcessorFunction func(parent *DvFieldInfo, params string) (*DvFieldInfo, error)