strings

package
v1.618.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 2 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 added in v1.607.0

func Bytes(s string) []byte

Bytes from string.

func Concat added in v1.582.0

func Concat(ss ...string) string

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

func IsEmpty added in v1.537.0

func IsEmpty(s string) bool

IsEmpty checks if a string is empty.

func Join added in v1.581.0

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