Discover Packages
github.com/getlantern/buuid
package
module
Version:
v0.0.0-...-8f14456
Opens a new window with list of versions in this module.
Published: Aug 29, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 3 modules, 2 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
buuid
buuid provides a type 4 UUID that can be encoded into a 16 byte binary
representation.
To install:
go get github.com/getlantern/buuid
For docs:
godoc github.com/getlantern/buuid
Expand ▾
Collapse ▴
Documentation
¶
Package buuid provides a type 4 uuid that can be encoded into a 16 byte
binary representation as two 64 bit integers in little endian byte order.
ID is a type 4 UUID.
FromString constructs an ID from the string-encoded version of a uuid.UUID.
Random creates a random ID (uses uuid.NewRandom() which uses crypto.Random()
under the covers)
Read reads the ID from a 16-byte or larger buffer
String() returns the string-encoded version like in uuid.UUID.
ToBytes returns a 16-byte representation of this ID
Write writes the ID to a 16-byte or larger buffer
Source Files
¶
Click to show internal directories.
Click to hide internal directories.