names

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 4 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelName

func LabelName(name string) string

LabelName cleans up a string to be used as a RFC 1123 Label name. It does not enforce the 63 character limit.

RFC 1123 Label name:

  • contain only lowercase alphanumeric characters or '-'
  • start with an alphanumeric character
  • end with an alphanumeric character

Examples:

  • myproject, MYPROJECT -> myproject
  • myProject, myProjecT, MyProject, MyProjecT -> my-project
  • my.project, My.Project, my-project, My-Project -> my-project

func ValidateLabelName

func ValidateLabelName(name string) error

ValidateLabelName checks if the given name is a valid RFC 1123 Label name.

func ValidateProjectName

func ValidateProjectName(name string) error

ValidateProjectName checks if the given name is a valid project name. Only lowercase letters, numbers, and - are allowed. And the first and last characters must be letters or numbers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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