Help us shape the future of Go! Take the 2026 Go Developer Survey

slug

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 1 Imported by: 0

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