helpers

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CapitalizeSentance

func CapitalizeSentance(sen string) string

func CapitalizeString

func CapitalizeString(s string) string

func GenerateFQDN

func GenerateFQDN(schema string, subdomain string, domain string) string

GenerateFQDN generates the FQDN from the provided schema, subdomain and domain

func GenerateSlug

func GenerateSlug(len int) string

func GenerateUID

func GenerateUID() int64

func GetGitHttpUrl

func GetGitHttpUrl(gitUrl string) string

func ListJsonName

func ListJsonName(in any) []string

func ListJsonNameForType

func ListJsonNameForType(t reflect.Type) []string

func Max

func Max[T constraints.Ordered](a, b T) T

func Min

func Min[T constraints.Ordered](a, b T) T

func Normalize

func Normalize(text string) string

func ParseFQDN

func ParseFQDN(fqdn string) (scheme string, subdomain string, domain string)

ParseFQDN parses the FQDN into its components and returns schema, subdomain and domain

func Random

func Random(length int, characters string) string

func RandomLower

func RandomLower(length int) string

func SanitizeGitUrl

func SanitizeGitUrl(gitUrl string) string

func SplitGitRepoFullname

func SplitGitRepoFullname(fullName string) (owner, repo string, err error)

func SplitGitRepoUrl

func SplitGitRepoUrl(url string) (owner, repo string, err error)

func ToFloat64String

func ToFloat64String(val float64) string

func ToInt64String

func ToInt64String(val int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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