modulepackage
0.0.0-20250131055038-888ec80b5157
Repository: https://github.com/stdutil/std.git
Documentation: pkg.go.dev
# Functions
AnyToString converts any variable to string.
BuildSeries builds series based on options.
Elem returns the element of an array as specified by the index
If the index exceeds the length of an array, it will return a non-nil value of the type.
ElemPtr returns a pointer to the element of an array as specified by the index
If the index exceeds the length of an array, it will return a non-nil value of the type.
If is a basic ternary operator to return whatever is set in truthy and falsey parameter.
In checks if the seek parameter is in the list parameter
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
IsNullOrEmpty checks for emptiness of a pointer variable ignoring nullity
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
IsInterfaceNil checks if an interface is nil.
IsNullOrEmpty checks for nullity and emptiness of a pointer variable
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
IsNumeric checks if a string is numeric.
MapVal retrieves a value from a map by a key and converts it to the type indicated by T.
New initializes a variable and returns a pointer of its type
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
NonNullComp compares two parameters when both are not nil.
Null accepts a value to test and the default value if it fails.
NullPtr accepts a value to test and the default value if it fails.
ParseDate parses a string as date.
SafeMapRead allows reading maps by locking it, preventing the library from crashing
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
SafeMapWrite allows writing to maps by locking, preventing the library from crashing
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
Seek checks if the seek parameter is in the list parameter and returns it.
ToInterfaceArray converts a value to interface array
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
Val gets the value of a pointer in order
Currently supported data types are: - constraints.Ordered (Integer | Float | ~string) - time.Time - bool - shopspring/decimal
This function requires version 1.18+.
# Structs
No description provided by the author
# Interfaces
No description provided by the author