https://github.com/volight/ulidfs
Ulid implementation in F#
https://github.com/volight/ulidfs
binary fsharp ulid
Last synced: 3 months ago
JSON representation
Ulid implementation in F#
- Host: GitHub
- URL: https://github.com/volight/ulidfs
- Owner: volight
- License: mit
- Created: 2021-04-18T14:57:27.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:37:51.000Z (over 1 year ago)
- Last Synced: 2025-02-06T09:48:36.252Z (5 months ago)
- Topics: binary, fsharp, ulid
- Language: C#
- Homepage: https://www.nuget.org/packages/Volight.Ulid
- Size: 91.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UlidFs
[](https://github.com/volight/UlidFs/actions/workflows/dotnet.yml)
[](https://www.nuget.org/packages/Volight.Ulid)
[](https://github.com/volight/UlidFs/blob/master/LICENSE)
[](https://github.com/ulid/spec)Ulid implementation in F#
## Usage
```fs
open Volight.Ulidlet id = Ulid.NewUlid()
let id = ulid()
let str = id.ToString()
let guid = id.ToGuid()
let id = Ulid.Parse(str)
let id = Ulid(str)
let success = Ulid.TryParse(str, &id)let id = Slid.NewSlid()
let id = slid()
let str = id.ToString()
let id = Slid.Parse(str)
let id = Slid(str)
let success = Slid.TryParse(str, &id)
```### Slid
Short version of Ulid (x64)- layout
```
rrr tttttttttt|-| |-------------|
Randomness Timestamp
16bits 48bits
3 characters 10 characters
|---------------------------|
64bits
13 characters
```## Other
[spec](https://github.com/ulid/spec)