Go library to generate deterministic random license‑plate strings (format XX-000-000-XX
) from seeds or input strings.
go get github.com/Mathious6/platekit
package main
import (
"fmt"
"github.com/Mathious6/platekit"
)
func main() {
fmt.Println("Random plate:", platekit.Generate())
fmt.Println("Plate from seed (42):", platekit.GenerateFromSeed(42))
fmt.Println("Plate from string ('hello'):", platekit.GenerateFromString("hello"))
}
- Deterministic output from seed or string
- Simple, fast, and dependency-free
- Always returns a string in the format
XX-000-000-XX
This project was inspired by hugoattal/hashplate, a tiny and fast library to generate human-readable hashes in the style of license plates.
Feel free to open issues or PRs for improvements!