package
1.0.0
Repository: https://github.com/x-research-team/vm.git
Documentation: pkg.go.dev

# Functions

Avg returns the average value of the provided first and rest Decimals.
CORSMethodMiddleware automatically sets the Access-Control-Allow-Methods response header on requests for routes that have an OPTIONS method matcher to all the method matchers on the route.
CurrentRoute returns the matched route for the current request, if any.
The Levenshtein distance between two strings is defined as the minimum number of edits needed to transform one string into the other, with the allowable edit operations being insertion, deletion, or substitution of a single character http://en.wikipedia.org/wiki/Levenshtein_distance This implemention is optimized to use O(min(m,n)) space.
No description provided by the author
Float64sAreSorted tests whether a slice of float64s is sorted in ascending/descending order.
No description provided by the author
Go language Value to vm language Object(take care of slice object value).
No description provided by the author
IntsAreSorted tests whether a slice of ints is sorted in ascending/descending order.
Helper function IsTrue for IF evaluation - neccessity is dubious.
Below code will cause panic(mainly request body handling).
No description provided by the author
Max returns the largest Decimal that was passed in the arguments.
Min returns the smallest Decimal that was passed in the arguments.
Returns a new valid boolean object.
No description provided by the author
NewDec returns a new fixed-point decimal, value * 10 ^ exp.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Returns a valid Float Object, that is Valid=true.
No description provided by the author
NewFromFloat converts a float64 to Decimal.
NewFromFloatWithExponent converts a float64 to Decimal, with an arbitrary number of fractional digits.
No description provided by the author
NewFromString returns a new Decimal from a string representation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Returns a valid Integer Object, that is Valid=true.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
return a Nil object with error message 's'.
No description provided by the author
No description provided by the author
No description provided by the author
NewRouter returns a new router instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Returns a valid String Object, that is Valid=true.
No description provided by the author
No description provided by the author
No description provided by the author
Returns a valid Unsigned Integer Object, that is Valid=true.
No description provided by the author
VM language Object to go language Value.
No description provided by the author
ParseDuration with support for Y(year), M(month) and D(day).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StringsAreSorted tests whether a slice of strings is sorted in ascending/descending order.
Sum returns the combined total of the provided first and rest Decimals.
No description provided by the author
UIntsAreSorted tests whether a slice of uints is sorted in ascending/descending order.
Vars returns the route variables for the current request, if any.

# Constants

constants for error types.
No description provided by the author
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
result object.
row object.
rows object.
constants for error types.
sql object.
statement object.
transaction object.
No description provided by the author
constants for error types.
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
constants for error types.
constants for error types.
constants for error types.
constants for error types.
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
Net Object.
No description provided by the author
constants for error types.
constants for error types.
constants for error types.
constants for error types.
constants for error types.
STDLIBERROR.
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
constants for error types.
constants for error types.
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
REGEXP OBJECT */.
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
constants for error types.
No description provided by the author
constants for error types.
No description provided by the author
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
constants for error types.
constants for error types.
No description provided by the author

# Variables

The base class of all classes in vm.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DivisionPrecision is the number of decimal places in the result when it doesn't divide exactly.
No description provided by the author
ErrMethodMismatch is returned when the method in the request does not match the method defined against the route.
ErrNotFound is returned when no route match is found.
No description provided by the author
No description provided by the author
No description provided by the author
MarshalJSONWithoutQuotes should be set to true if you want the decimal to be JSON marshaled as a number, instead of as a string.
No description provided by the author
No description provided by the author
Builtin @NotEmpty annotation classAsserts that the annotated string, tuple, map or array is not null or empty.
Builtin @NotNull annotation classThe annotated element must not be {@code null}.
Builtin @Override annotation class.
REPL with color support.
SkipRouter is used as a return value from WalkFuncs to indicate that the router that walk is about to descend down to should be skipped.
No description provided by the author
Zero constant, to make computations faster.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CallStack is a stack for CallFrame.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
*************************************************************** DB Result Object***************************************************************.
*************************************************************** DB Row Object***************************************************************.
*************************************************************** DB Rows Object***************************************************************.
*************************************************************** DB Statement Object***************************************************************.
*************************************************************** DB Transaction object***************************************************************.
No description provided by the author
Decimal represents a fixed-point decimal.
No description provided by the author
No description provided by the author
No description provided by the author
FileInfo Object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Float64Slice attaches the methods of Interface to []float64, sorting in ascending/descending order.
No description provided by the author
This `Formatter` struct is mainly used to encapsulate golang`fmt` package's `Formatter` interface.When we implement this interface, our `Object` could be directed passed to fmt.Printf(xxx).
No description provided by the author
wrapper for go functions.
Wrapper for go object.
Group is a type that is used to store the result of GroupBy method.
No description provided by the author
No description provided by the author
No description provided by the author
HTTP Client object.
HTTP Header object.
No description provided by the author
HTTP Request object.
HTTP Response object.
HTTP ResponseWriter object.
HTTP Server object.
No description provided by the author
No description provided by the author
No description provided by the author
IntSlice attaches the methods of Interface to []int, sorting in ascending/descending order.
No description provided by the author
No description provided by the author
KeyValue is a type that is used to iterate over a map (if query is created from a map).
No description provided by the author
List element object.
List object.
No description provided by the author
No description provided by the author
MethodInfo object.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OrderedQuery is the type returned from OrderBy, OrderByDescending ThenBy and ThenByDescending functions.
No description provided by the author
Pipe Object.
PropertyInfo object.
Query is the type returned from query functions.
No description provided by the author
No description provided by the author
No description provided by the author
Route stores information to match a request and build URLs.
RouteMatch stores information about a matched route.
Router registers routes to be matched and dispatches a handler.
No description provided by the author
No description provided by the author
No description provided by the author
*************************************************************** SQL Object***************************************************************.
This object's purpose is only for 5 predefined null constants.
No description provided by the author
StringSlice attaches the methods of Interface to []string, sorting in ascending/descending order.
No description provided by the author
No description provided by the author
Condition Object.
Mutex Object.
Once Object.
RWMutex Object.
WaitGroup Oject.
TCP connection object.
TCP Listener object.
No description provided by the author
No description provided by the author
No description provided by the author
UDP connection object.
No description provided by the author
UIntSlice attaches the methods of Interface to []int, sorting in ascending/descending order.
No description provided by the author
UNIX connection object.
UNIX Listener object.

# Interfaces

No description provided by the author
Whether the Object is closable(mainly used for 'using' statement).
Whether the Object can be used as hash's key.
No description provided by the author
Whether the Object is iterable (HASH, ARRAY, RANGE, STRING, TUPLE, Some of the GoObject).
Whether the Object is a number (UINT, INT, FLOAT).
No description provided by the author
Whether the Object is throwable (STRING for now).
Whether the Object is the target of IO writer.

# Type aliases

BuildVarsFunc is the function signature used by custom build variable functions (which can modify route variables before a route's URL is built).
No description provided by the author
No description provided by the author
No description provided by the author
Iterator is an alias for function to iterate over data.
MatcherFunc is the function signature used by custom matchers.
MiddlewareFunc is a function which receives an http.Handler and returns another http.Handler.
No description provided by the author
No description provided by the author
WalkFunc is the type of the function called for each route visited by Walk.