feed-to-muc/vendor/github.com/chilts/sid/ReadMe.md
Martin Dosch 96fd8cf3f6 Revert "Updated vendor packages."
This reverts commit 3d981156fe.
2019-08-30 09:44:03 +02:00

1.1 KiB

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.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)