Documentation ¶
Index ¶
- func FormatUUID(buf []byte) (string, error)
- func GenerateRandomBytes(size int) ([]byte, error)
- func GenerateRandomBytesWithReader(size int, reader io.Reader) ([]byte, error)
- func GenerateUUID() (string, error)
- func GenerateUUIDWithReader(reader io.Reader) (string, error)
- func ParseUUID(uuid string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatUUID ¶
func GenerateRandomBytes ¶
GenerateRandomBytes is used to generate random bytes of given size.
func GenerateRandomBytesWithReader ¶ added in v1.0.2
GenerateRandomBytesWithReader is used to generate random bytes of given size read from a given reader.
func GenerateUUID ¶
GenerateUUID is used to generate a random UUID
func GenerateUUIDWithReader ¶ added in v1.0.2
GenerateUUIDWithReader is used to generate a random UUID with a given Reader
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.