feed-to-muc/vendor/github.com/chilts/sid
2019-02-20 20:23:48 +01:00
..
LICENSE Vendored external dependencies. 2019-02-20 20:23:48 +01:00
ReadMe.md Vendored external dependencies. 2019-02-20 20:23:48 +01:00
sid.go Vendored external dependencies. 2019-02-20 20:23:48 +01:00

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)