package
0.0.0-20221002162703-3a454c364a7d
Repository: https://github.com/sjhoeksma/jsonata-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
Append (golint).
Average returns the mean of an array of numbers.
Base64Decode returns the string represented by a base 64 string.
Base64Encode returns the base 64 encoding of a string.
Boolean (golint).
Contains returns true if the source string matches a given pattern.
Count (golint).
DecodeURL decodes a Uniform Resource Locator (URL) See https://docs.jsonata.org/string-functions#decodeurl and https://docs.jsonata.org/string-functions#decodeurlcomponent.
Distinct returns the values passed in with any duplicates removed.
Each applies the function fn to each name/value pair in the object obj and returns the results in an array.
EncodeURL decodes a Uniform Resource Locator (URL) See https://docs.jsonata.org/string-functions#encodeurl.
EncodeURLComponent decodes a component of a Uniform Resource Locator (URL) and https://docs.jsonata.org/string-functions#encodeurlcomponent.
Exists (golint).
Filter (golint).
FormatBase returns the string representation of a number in the optional base argument.
FormatNumber converts a number to a string, formatted according to the given picture string.
FromMillis (golint).
Join concatenates an array of strings into a single string.
Keys returns an array of the names in the object obj.
Map (golint).
Match returns an array of objects describing matches of a regular expression in the source string.
Max returns the largest value in an array of numbers.
Merge merges an array of objects into a single object that contains all of the name/value pairs from the array objects.
Min returns the smallest value in an array of numbers.
Not (golint).
Number converts values to numbers.
ObjMerge - merge two map[string]interface{} objects together - if they have unique keys.
Pad returns a string padded to the specified number of characters.
Power returns x to the power of y.
Random returns a random floating point number between 0 and 1.
Reduce (golint).
Replace returns a copy of the source string with zero or more instances of the given pattern replaced by the value provided.
Reverse (golint).
Round rounds its input to the number of decimal places given in the optional second parameter.
Shuffle (golint).
Sift returns a map containing name/value pairs from the object obj that satisfy the predicate function fn.
SimpleJoin - a multi-key multi-level full OR join - very simple and useful in certain circumstances.
Single returns the one and only one value in the array parameter that satisfy the function predicate (i.e.
Sort (golint).
Split returns an array of substrings generated by splitting a string on the provided separator.
Spread (golint).
Sqrt returns the square root of a number.
String converts a JSONata value to a string.
Substring returns the portion of a string starting at the given (zero-indexed) offset.
SubstringAfter returns the portion of a string that follows the first occurrence of the given substring.
SubstringBefore returns the portion of a string that precedes the first occurrence of the given substring.
Sum returns the total of an array of numbers.
ToMillis (golint).
Trim replaces consecutive whitespace characters in a string with a single space and trims spaces from the ends of the resulting string.
TypeOf implements the jsonata $type function that returns the data type of the argument.
Unescape an escaped json string into JSON (once).
Zip (golint).
# Constants
ErrNanInf (golint).
# Type aliases
ErrType (golint).
StringCallable (golint).
StringNumberBool (golint).