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

branch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateSlug

func DateSlug(message string) string

DateSlug returns a branch name in the format MM-DD-slugified-message. It is used to auto-generate a branch name from a commit message when no explicit branch name is provided.

func Slugify

func Slugify(message string) string

Slugify converts a message into a URL/branch-safe slug. Lowercases, replaces spaces and other disallowed characters with underscores (any hyphens already present in the message are preserved), collapses runs of adjacent separators, and truncates to ~30 chars at a word boundary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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