mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-23 06:28:39 +01:00
.. | ||
LICENSE | ||
ReadMe.md | ||
sid.go |
sid : generate sortable identifiers
Overview
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.Id()
fmt.Printf("id1 = %s\n", id1)
fmt.Printf("id2 = %s\n", id2)
// -> "id1 = 1IeSBAWW83j-2wgJ4PUtlAr"
// -> "id2 = 1IeSBAWW9kK-0cDG64GQgGJ"
Author
By Andrew Chilton, @twitter.
For AppsAttic, @AppsAttic.
License
MIT.
(Ends)