All Projects → chilts → sid

chilts / sid

Licence: MIT License
Generate Sortable Identifiers

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to sid

tsid-creator
A Java library for generating Time Sortable Identifiers (TSID).
Stars: ✭ 16 (-38.46%)
Mutual labels:  id, identifier
ulid-creator
A Java library for generating Universally Unique Lexicographically Sortable Identifiers (ULID)
Stars: ✭ 38 (+46.15%)
Mutual labels:  id, identifier
ciid
Chronological Image Identifier – Uniquely identify image files while keeping the ability to sort them chronologically by name.
Stars: ✭ 25 (-3.85%)
Mutual labels:  sortable, identifier
firebase-id-tokens-verifier
Code snippet to show how to verify Firebase ID tokens using Ruby
Stars: ✭ 32 (+23.08%)
Mutual labels:  id
react-table
simple react sortable searchable table
Stars: ✭ 16 (-38.46%)
Mutual labels:  sortable
ids
高效的分布式id生成器,每个客户端实例tps可达到100万,服务端毫无压力。即使服务端宕机了,id生成依然可用。支持多数据中心,支持id加密。
Stars: ✭ 47 (+80.77%)
Mutual labels:  id
CodeIgniter-Adjacency-List
Simple implementation with nestedSortable plugin.
Stars: ✭ 18 (-30.77%)
Mutual labels:  sortable
chinaid
🇨🇳中国大陆身份证号解析/校验
Stars: ✭ 18 (-30.77%)
Mutual labels:  id
spiral
A Python 3 module that provides functions for splitting identifiers found in source code files.
Stars: ✭ 37 (+42.31%)
Mutual labels:  identifier
id-mask
IDMask is a Java library for masking internal ids (e.g. from your DB) when they need to be published to hide their actual value and to prevent forging. It has support optional randomisation has a wide support for various Java types including long, UUID and BigInteger. This library bases its security on strong cryptographic primitives.
Stars: ✭ 39 (+50%)
Mutual labels:  id
livewire-sortablejs
A Laravel Livewire plugin that makes it easy to use Sortable.js
Stars: ✭ 68 (+161.54%)
Mutual labels:  sortable
distributed-id
基于netty4+twitter-snowFlake分布式Id生成之服务实现
Stars: ✭ 18 (-30.77%)
Mutual labels:  id
dflex
The sophisticated Drag and Drop library you've been waiting for 🥳
Stars: ✭ 806 (+3000%)
Mutual labels:  sortable
hide
ID type with marshalling to/from hash to prevent sending IDs to clients.
Stars: ✭ 45 (+73.08%)
Mutual labels:  id
platform device id
flutter plugin to get device id
Stars: ✭ 32 (+23.08%)
Mutual labels:  id
vue-dnd-zone
vue.js plugin for drag and drop functionality
Stars: ✭ 144 (+453.85%)
Mutual labels:  sortable
vue-uniq-ids
Vue.js 2.x plugin that helps to use id-related attributes with no side-effect
Stars: ✭ 32 (+23.08%)
Mutual labels:  id
urbit-visor
Urbit Visor is an extension which transforms your web browser into a first class Urbit client.
Stars: ✭ 65 (+150%)
Mutual labels:  id
leafserver
🍃A high performance distributed unique ID generation system
Stars: ✭ 31 (+19.23%)
Mutual labels:  id
KSUID
Sortable UIDs in Python
Stars: ✭ 83 (+219.23%)
Mutual labels:  sortable

sid : generate sortable identifiers

Overview

GoDoc Build Status Code Climate Go Report Card

This package is simple and only provides one function. The aim here is not pure speed, it is for an easy use-case without having to worry about goroutines and locking.

Install

go get github.com/chilts/sid

Example

id1 := sid.Id()
id2 := sid.IdHex()
id3 := sid.IdBase32()
id4 := sid.IdBase64()

fmt.Printf("id1 = %s\n", id1)
fmt.Printf("id2 = %s\n", id2)
fmt.Printf("id3 = %s\n", id3)
fmt.Printf("id4 = %s\n", id4)

// -> "id1 = 1559872035903071353-1186579057231285506"
// -> "id2 = 15a5cf57e7d2a837-6eaafe687e7b3ec3"
// -> "id3 = 1b9efqnl51jj7-4u66ikpfq9ugm"
// -> "id4 = 1IeSBAWW9kK-0cDG64GQgGJ"

Author

By Andrew Chilton, @twitter.

For AppsAttic, @AppsAttic.

License

MIT

(Ends)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].