Demo fixture for the fj CLI: issues, stacked PRs, releases, and Actions used in fj's docs and screenshots.
- Rust 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
urlshort
A tiny URL shortener: base62 short codes over an in-memory store.
This repository is a demo fixture for the fj
CLI. Its issues, pull requests, releases, and Actions runs exist so fj's docs
and screenshots have something realistic to show.
use urlshort::{encode, decode};
let code = encode(12345); // "3d7"
assert_eq!(decode(&code), Some(12345));