types

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringComparer

func StringComparer(a, b string) bool

Types

type StringSet

type StringSet = stl.Set[string]

type StringSlice

type StringSlice = []string

type Strings

type Strings []string

func NewStrings

func NewStrings(strs ...string) Strings

func NewStringsFromSet

func NewStringsFromSet(set StringSet) Strings

func NewStringsFromStringSlice

func NewStringsFromStringSlice(strs StringSlice) Strings

func (Strings) AllMatch

func (strs Strings) AllMatch(test func(string) bool) bool

func (Strings) AnyMatch

func (strs Strings) AnyMatch(test func(string) bool) bool

func (Strings) Append

func (strs Strings) Append(more ...string) Strings

func (Strings) Concat

func (strs Strings) Concat(others ...Strings) Strings

func (Strings) Contain

func (strs Strings) Contain(str string) bool

func (Strings) Dup

func (strs Strings) Dup() Strings

func (Strings) Empty

func (strs Strings) Empty() bool

func (Strings) EnsureNotNil

func (strs Strings) EnsureNotNil() Strings

func (Strings) Equal

func (strs Strings) Equal(other Strings) bool

func (Strings) Filter

func (strs Strings) Filter(filter func(string) bool) Strings

func (Strings) ForEach

func (strs Strings) ForEach(handler func(string))

func (Strings) ForEachPro

func (strs Strings) ForEachPro(handler func(int, string, Strings))

func (Strings) IndexOf

func (strs Strings) IndexOf(str string) int

func (Strings) InplaceSort

func (strs Strings) InplaceSort() Strings

func (Strings) Join

func (strs Strings) Join(sep string) string

func (Strings) JoinByComma

func (strs Strings) JoinByComma() string

func (Strings) Len

func (strs Strings) Len() int

func (Strings) Map

func (strs Strings) Map(mapper func(string) string) Strings

func (Strings) Native

func (strs Strings) Native() StringSlice

func (Strings) Purge

func (strs Strings) Purge(filter func(string) bool) Strings

func (Strings) PurgeZero

func (strs Strings) PurgeZero() Strings

func (Strings) Sort

func (strs Strings) Sort() Strings

func (Strings) Split

func (strs Strings) Split(seps ...string) Strings

go example

func (Strings) ToSet

func (strs Strings) ToSet() StringSet

func (Strings) TrimSpace

func (strs Strings) TrimSpace() Strings

func (Strings) UniqueSorteds

func (strs Strings) UniqueSorteds() Strings

Jump to

Keyboard shortcuts

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