🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

github.com/gokyle/uuid

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gokyle/uuid

v0.0.0-20121101053535-b9f9e95fd80a
Source
Go
Version published
Created
Source

package uuid provides an RFC 4122 UUID generator.

Each supported UUID version provides two functions: GenerateVn, where n is the version number, and GenerateVnString. The GenerateVn function returns the UUID as a Uuid type (currently implemented as a []byte), and the GenerateVnString returns the UUID as a string.

Tests for each exported function are also provided, which include checks to ensure that generated UUIDs are in the proper format.

FUNCTIONS

// GenerateV4String returns a version 4 UUID as a string.
func GenerateV4String() (u string, err error)
// GenerateV4 returns a version 4 UUID as a byte slice.
func GenerateV4() (u Uuid, err error)

TYPES

type Uuid []byte

FAQs

Package last updated on 01 Nov 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts