package
0.0.0-20230131075324-9ed520afbec1
Repository: https://github.com/stirante/go-simple-eval.git
Documentation: pkg.go.dev

# Functions

AsArray returns the given interface as a JSON array.
AsObject returns the given interface as a JSON object.
CreateRange creates a range of numbers from start to end as a JSON array.
DeepCopyArray creates a deep copy of the given JSON array.
DeepCopyObject creates a deep copy of the given JSON object.
DeleteNulls removes all keys with null values from the given JSON object.
DeleteNullsFromArray removes all keys inside elements of JSON object type with null values from the given JSON array.
No description provided by the author
IsArray returns true if the given interface is an array.
IsEqual returns true if the given interfaces are equal.
IsEqualArray returns true if the given JSON arrays are equal.
IsEqualObject returns true if the given JSON objects are equal.
IsNumber returns true if the given interface is a number.
IsObject returns true if the given interface is an object.
IsSemver returns true if the given interface is a semver object.
MergeArray merges two JSON arrays into a new JSON array.
MergeObject merges two JSON objects into a new JSON object.
ParseSemverArray parses an array representation of a semantic version.
ParseSemverString parses a string representation of a semantic version.
ToBoolean converts an interface to a boolean.
ToNumber converts an interface to a JSON number.
No description provided by the author
ToString converts an interface to a string.
UnescapeString removes quotes and unescapes a string.
UnwrapContainers removes all containers from the given interface.

# Structs

JsonNumber is a struct that represents a number, that can be either integer or decimal.
Semver represents a semantic version.

# Interfaces

Number is an interface that represents a number, that can be either integer or decimal.

# Type aliases

JsonFunction is a function that can be executed.