string

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package string contains utility functions for string manipulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalize

func Capitalize(s string) string

Capitalize capitalizes the first letter of a string.

func IsDevVersion

func IsDevVersion(cliVersion interface{}) bool

IsDevVersion checks if a given CLI version is a development version.

func MultiTrim

func MultiTrim(str string, prefixes, suffixes []string) string

MultiTrim trims a string of multiple prefixes and suffixes.

func RandStr

func RandStr(strLen int) string

RandStr generates a random string of a given length, which is the first N chars of a UUID of the form: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, per RFC4122.

Types

This section is empty.

Jump to

Keyboard shortcuts

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