Documentation
¶
Index ¶
Constants ¶
View Source
const ( EmptyStr = "" ObjectType string = "object" ArrayType string = "array" StringType string = "string" IntegerType string = "integer" NumberType string = "number" BooleanType string = "boolean" NullType string = "null" UnknownType string = "unknown" NumberZeroValue int = 0 JSONIngest string = "JSON.INGEST" GET string = "GET" SET string = "SET" INCRBY string = "INCRBY" OVERFLOW string = "OVERFLOW" WRAP string = "WRAP" SAT string = "SAT" FAIL string = "FAIL" SIGNED string = "SIGNED" UNSIGNED string = "UNSIGNED" )
Variables ¶
This section is empty.
Functions ¶
func GetJSONFieldType ¶
func GetJSONFieldType(v interface{}) string
func IsFloatToIntPossible ¶
func ParseInputJSONPath ¶
This method returns the path, and a boolean value telling if the path provided follows Legacy Path Syntax or JSONPath syntax. JSON knows which syntax to use depending on the first character of the path query. If the query starts with the character $, it uses JSONPath syntax. Otherwise, it defaults to the legacy path syntax. A JSONPath query can resolve to several locations in a JSON document. In this case, the JSON commands apply the operation to every possible location. This is a major improvement over legacy path queries, which only operate on the first path.
func RoundToDecimals ¶
RoundToDecimals rounds a float64 or float32 to a specified number of decimal places.
Types ¶
type BitFieldOp ¶
func ParseBitfieldOps ¶
func ParseBitfieldOps(args []string, readOnly bool) (ops []BitFieldOp, err error)
Click to show internal directories.
Click to hide internal directories.