package
0.0.0-20231212143655-048a247f3aa4
Repository: https://github.com/seventv/common.git
Documentation: pkg.go.dev

# Functions

b2s converts byte slice to a string without memory allocation.
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
GenerateRandomBytes returns securely generated random bytes.
GenerateRandomString returns a URL-safe, base64 encoded securely generated random string.
No description provided by the author
Util - Is Power Of Two.
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
S2B converts string to a byte slice without memory allocation.
No description provided by the author
No description provided by the author
Util - Ternary: A golang equivalent to JS Ternary Operator It takes a condition, and returns a result depending on the outcome.
No description provided by the author
ToJSON converts a struct to JSON, but instead of throwing an error will simply set the resulting JSON to an empty object if failed.

# Variables

No description provided by the author

# Interfaces

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

# Type aliases

Color is a utility to efficiently format colors into a 32-bit integer with alpha channel support.
No description provided by the author
No description provided by the author