generator

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DNS1123SubdomainInvalidCharSet       = regexp.MustCompile("[^a-z0-9-.]")
	DNS1123SubdomainInvalidStartChartSet = regexp.MustCompile("^[^a-z0-9]+")
)

Functions

func ToDNS1123Subdomain

func ToDNS1123Subdomain(data string) string

ToDNS1123Subdomain removes all invalid char for a DNS1123Subdomain string and transform it to a valid format

func ToMaxLength

func ToMaxLength(a, b string, max int) (string, string)

ToMaxLength reduce the total length of the strings, balancing the length as evently as possible

Types

This section is empty.

Jump to

Keyboard shortcuts

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