package
0.0.0-20240924094734-5be76870bfa2
Repository: https://github.com/chainreactors/neutron.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

BytesSize returns a human-readable size in bytes, kibibytes, mebibytes, gibibytes, or tebibytes (eg.
CustomSize returns a human-readable approximation of a size using custom format.
Eval compiles the given expression and evaluate it with the given values preserving the return type.
Evaluate checks if the match contains a dynamic variable, for each found one we will check if it's an expression and can be compiled, it will be evaluated and the results will be returned.
EvaluateByte checks if the match contains a dynamic variable, for each found one we will check if it's an expression and can be compiled, it will be evaluated and the results will be returned.
No description provided by the author
FromHumanSize returns an integer from a human-readable specification of a size using SI standard (eg.
No description provided by the author
HasPrefixAny checks if the string starts with any specified prefix.
HasPrefixI is case insensitive HasPrefix.
HumanSize returns a human-readable approximation of a size capped at 4 valid numbers (eg.
HumanSizeWithPrecision allows the size to be in any precision, instead of 4 digit precision used in units.HumanSize.
IndexAt look for a substring starting at position x.
No description provided by the author
No description provided by the author
MergeMaps merges two maps into a New map.
MergeMapsMany merges many maps into a new map.
No description provided by the author
No description provided by the author
RAMInBytes parses a human-readable string representing an amount of RAM in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and returns the number of bytes, or -1 if the string is unparseable.
Replace replaces placeholders in template with values on the fly.
Replace replaces one placeholder in template with one value on the fly.
No description provided by the author
No description provided by the author
TrimPrefixAny trims all prefixes from string in order.

# Constants

See: http://en.wikipedia.org/wiki/Binary_prefix.
General marker (open/close).
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
ParenthesisClose marker - end of a placeholder.
ParenthesisOpen marker - begin of a placeholder.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author