strings

package
v2.69.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Contains is an alias for strings.Contains.
	Contains = strings.Contains

	// Cut is an alias for strings.Cut.
	Cut = strings.Cut

	// HasPrefix is an alias for strings.HasPrefix.
	HasPrefix = strings.HasPrefix

	// Repeat is an alias for strings.Repeat.
	Repeat = strings.Repeat

	// ToLower is an alias for strings.ToLower.
	ToLower = strings.ToLower

	// TrimSpace is an alias for strings.TrimSpace.
	TrimSpace = strings.TrimSpace
)

Functions

func Bytes

func Bytes(s string) []byte

Bytes from string.

func Concat

func Concat(ss ...string) string

Concat will take all the strings and join them with an empty string.

func CutColon added in v2.12.0

func CutColon(s string) (string, string)

CutColon will split by : and give before and after.

func IsAnyEmpty added in v2.24.0

func IsAnyEmpty(ss ...string) bool

IsAnyEmpty checks if any strings are empty.

func IsEmpty

func IsEmpty(s string) bool

IsEmpty checks if a string is empty.

func Join

func Join(sep string, ss ...string) string

Join strings by a separator. This allows to do strings.Join(" ", "1", "2").

Types

This section is empty.

Jump to

Keyboard shortcuts

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