stringutils

package
v0.0.0-...-53a60af Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsString

func AsString[T Stringable](s T) string

func AsStringSlice

func AsStringSlice[S ~[]T, T Stringable](s S) []string

func CompareStringable

func CompareStringable[T Stringable](a, b T) int

func Join

func Join[L ~[]S, S Stringable](list L, seps ...string) string

func JoinFunc

func JoinFunc[L ~[]E, E any](list L, separator string, f func(E) string) string

Types

type Stringable

type Stringable interface {
	String() string
}

Jump to

Keyboard shortcuts

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