slug

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package slug provides slugification for turning free-text ticket titles into filesystem/git-safe branch name components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(title, ticketID string) string

Branch computes the working branch name for a ticket from its title and ID: ticket/<slug(title)>-<id[:8]>.

func Slug

func Slug(s string) string

Slug lowercases s, collapses runs of non [a-z0-9] characters into a single '-', trims leading/trailing '-', and truncates to 40 characters (trimming any trailing '-' left by truncation). Returns "untitled" if the result is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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