naming

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatToMax added in v0.3.0

func ConcatToMax(max int, sections ...string) string

ConcatToMax will cut each section to length based on number of sections to not go beyond max and separate the sections with -.

func RandName

func RandName(length int) string

RandName generates random alphabetical name which can be used as application or namespace name in Openshift.

Don't forget to seed before using this function, e.g. rand.Seed(time.Now().UTC().UnixNano()) otherwise you will always get the same value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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