platekit

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 3 Imported by: 1

README

platekit

CI Go Reference

Go library to generate deterministic random license‑plate strings (format XX-000-000-XX) from seeds or input strings.

Installation

go get github.com/Mathious6/platekit

Usage

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"))
}

Features

  • Deterministic output from seed or string
  • Simple, fast, and dependency-free
  • Always returns a string in the format XX-000-000-XX

Inspiration

This project was inspired by hugoattal/hashplate, a tiny and fast library to generate human-readable hashes in the style of license plates.

Used in


Feel free to open issues or PRs for improvements!

Documentation

Overview

Package platekit provides functions to generate random license plate strings.

The license plate format is: `XX-000-000-XX`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() string

Generate returns a random license plate string.

func GenerateFromSeed

func GenerateFromSeed(seed int) string

GenerateFromSeed returns a license plate string based on a given seed.

func GenerateFromString

func GenerateFromString(value string) string

GenerateFromString returns a license plate string based on a string value.

Types

This section is empty.

Directories

Path Synopsis
examples
basic command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL