Discover Packages
github.com/google/gapid
core
data
id
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Aug 29, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 8 modules, 149 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.
Documentation
Documentation
¶
Package id provides types and functions for generation of identifiers.
Size is the size of an ID.
ID is a codeable unique identifier.
Hash creates a new ID by calling f and hashing all data written to w.
func OfBytes(data ...[]byte ) ID
OfBytes calculates the ID for the supplied data using the Hash function.
OfString calculates the ID for the supplied strings using the Hash function.
Parse parses lowercase string s as a 20 byte hex-encoded ID.
Unique returns a unique identifier by hashing the current time and machine hostname.
IsValid returns true if the id is not the default value.
MarshalJSON encodes the ID as a JSON string.
Parse parses lowercase string s as a 20 byte hex-encoded ID, or copies s
to the ID if it is 20 bytes long.
UnmarshalJSON decodes a JSON string as an ID.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.