BSD Ports

wip/go-ksuid 1.0.3 NetBSD

K-Sortable Globally Unique IDs

System
NetBSD
Repository
pkgsrc-wip
Maintainer
[email protected]
License
mit
Categories
wip, devel

Description

TODO: Adjust the following lines from README.md

# ksuid [![Go Report Card](https://goreportcard.com/badge/github.com/segmentio/ksuid)](https://goreportcard.com/report/github.com/segmentio/ksuid) [![GoDoc](https://godoc.org/github.com/segmentio/ksuid?status.svg)](https://godoc.org/github.com/segmentio/ksuid) [![Circle CI](https://circleci.com/gh/segmentio/ksuid.svg?style=shield)](https://circleci.com/gh/segmentio/ksuid.svg?style=shield)

ksuid is a Go library that can generate and parse KSUIDs.

# Install ```bash go get -u github.com/segmentio/ksuid ```

# What is a KSUID?

KSUID is for K-Sortable Unique IDentifier. It's a way to generate globally unique IDs similar to RFC 4122 UUIDs, but contain a time component so they can be "roughly" sorted by time of creation. The remainder of the KSUID is randomly generated bytes.

# Why use KSUIDs?

Distributed systems often require unique IDs. There are numerous solutions out there for doing this, so why KSUID? ...

Install

From pkgsrc-wip (no binary package):

cd /usr/pkgsrc/wip/go-ksuid && make install clean

Dependencies

No port depends on this one.