package
0.9.3
Repository: https://github.com/wavetermdev/waveterm.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
Add two int values, returning an error if the result overflows.
Add a slice of ints, returning an error if the result overflows.
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
will overwrite m1 with m2's values.
combines string arrays and removes duplicates (returns a new array).
Helper to handle numeric comparisons as float64.
No description provided by the author
does *not* close outputCh on EOF or error.
returns (isEOF, error).
No description provided by the author
No description provided by the author
on error just returns "" does not return "application/octet-stream" as this is considered a detection failure can pass an existing fileInfo to avoid re-statting the file.
does a mapstructure using "json" tags.
No description provided by the author
on encoding error returns "" this is used to perform logic on first value without decoding the entire array.
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
No description provided by the author
Helper to check if a value is a numeric type.
No description provided by the author
No description provided by the author
this is a shallow equal, but with special handling for numeric types it will up convert to float64 and compare.
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
encodes a string, removing null/zero bytes (and separators '|') a zero byte is encoded as "\0", a '\' is encoded as "\\", sep is encoded as "\s" allows for easy double splitting (first on \x00, and next on "|").
No description provided by the author
No description provided by the author
No description provided by the author
every byte is 4-bits of randomness.
removes an element from a slice and modifies the original slice (the backing elements) if it removes the last element from the slice, it will return nil so we free the original slice's backing memory.
No description provided by the author
returns base64 hash of data.
returns hex escaped string (\xNN for each byte).
minimum maxlen=6.
No description provided by the author
No description provided by the author
matches a delimited string with a pattern string the pattern string can contain "*" to match a single part, or "**" to match the rest of the string note that "**" may only appear at the end of the string.
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
Convert various numeric types to float64 for comparison.
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

sentinel value for StrWithPos.Pos to indicate no position.

# Variables

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