package
0.1.0
Repository: https://github.com/dspasibenko/raywin-go.git
Documentation: pkg.go.dev

# Functions

Bytes2String transforms bitstream to a string.
CreateHash returns the Hash value by buf.
GetRandomString returns the random generated string with the alphabet abc.
NewSha256ForData returns the sha256 Hash for the data provided.
ParseHash returns the Hash value for the provided string.
RandomHash generates a pseudo-random Hash value.
RandomString returns a pseudo-random string by length ln.
RemoveDups returns a slice where every element from ss meets only once.
SumHashes returns the hash value for the list of hashes.
Swaps (in place) odd and even positions of the given string slice, can be useful in reversing 'map' when represented as slice of {k1,v1,k2,v2} Examples: SwapEvenOdd([]string{1}) returns []string{1} SwapEvenOdd([]string{1,2,3}) returns []string{2,1,3} SwapEvenOdd([]string{1,2,3,4}) returns []string{2,1,4,3}.
TruncateWithEllipses truncate string if it doesn't fit into maxLen and add 3 ellipses.

# Interfaces

Hash type represents a hash value.