Documentation ¶ Overview ¶ Package slug provides slugification for turning free-text ticket titles into filesystem/git-safe branch name components. Index ¶ func Branch(title, ticketID string) string func Slug(s string) string 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. Source Files ¶ View all Source files slug.go Click to show internal directories. Click to hide internal directories.