package
0.13.8
Repository: https://github.com/gpustack/gguf-parser-go.git
Documentation: pkg.go.dev

# Functions

CutFromLeft is the same as strings.Cut, which starts from left to right, slices s around the first instance of sep, returning the text before and after sep.
CutFromRight takes the same arguments as CutFromLeft, but starts from right to left, slices s around the last instance of sep, return the text before and after sep.
FromBytes converts a byte slice to a string.
RandomBase64 generates a random base64 string with length of n, safe for URL.
RandomBytes generates n random bytes.
RandomHex generates a random hex string with length of n e.g: 67aab2d956bd7cc621af22cfb169cba8.
RandomString generates a random string using only letters provided in the letters parameter if user omit letters parameters, this function will use defLetters instead.
ReplaceAllFunc is similar to strings.ReplaceAll, but it replaces each rune in s with the result of f(r).
SumByFNV64a sums up the string(s) by FNV-64a hash algorithm.
SumBySHA224 sums up the string(s) by SHA224 hash algorithm.
SumBySHA256 sums up the string(s) by SHA256 hash algorithm.
SumBytesByFNV64a sums up the byte slice(s) by FNV-64a hash algorithm.
SumBytesBySHA224 sums up the byte slice(s) by SHA224 hash algorithm.
SumBytesBySHA256 sums up the byte slice(s) by SHA256 hash algorithm.
ToBytes converts a string to a byte slice, which is impossible to modify the item of slice.