Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volight/ulidfs
Ulid implementation in F#
https://github.com/volight/ulidfs
binary fsharp ulid
Last synced: 4 days 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:37:51.000Z (about 1 year ago)
- Last Synced: 2025-02-06T09:48:36.252Z (4 days 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
[![.NET](https://github.com/volight/UlidFs/actions/workflows/dotnet.yml/badge.svg)](https://github.com/volight/UlidFs/actions/workflows/dotnet.yml)
[![NuGet](https://img.shields.io/nuget/v/UlidFs?label=NuGet)](https://www.nuget.org/packages/Volight.Ulid)
[![MIT](https://img.shields.io/github/license/volight/UlidFs)](https://github.com/volight/UlidFs/blob/master/LICENSE)
[![binary](https://img.shields.io/badge/ULID-Binary_Impl-blueviolet)](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)