stringslice

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 3 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllElemLengthSlices

func AllElemLengthSlices(slices ...*[]string) int

func AllElemLengthSlicesPtr

func AllElemLengthSlicesPtr(slices *[]*[]string) int

func Empty

func Empty() []string

func EmptyPtr

func EmptyPtr() *[]string

func ExpandByFunc

func ExpandByFunc(
	slice *[]string,
	expandFunc func(line string) *[]string,
) *[]string

ExpandByFunc Don't include nil or empty slice from expand

func ExpandBySplit

func ExpandBySplit(slice *[]string, splitter string) *[]string

ExpandBySplit Take each slice item, split and add to the new slice array and returns it.

func ExpandBySplitsPtr

func ExpandBySplitsPtr(
	slice *[]string,
	splitters ...string,
) *[]string

ExpandBySplitsPtr Take each slice item, split and add to the new slice array and returns it.

func InPlaceReverse

func InPlaceReverse(list *[]string) *[]string

func LengthOfPointer

func LengthOfPointer(slices *[]string) int

func Make

func Make(length, capacity int) []string

func MakeDefault

func MakeDefault(capacity int) []string

func MakePtr

func MakePtr(length, capacity int) *[]string

func MergeNew

func MergeNew(firstSlice []string, additionalItems ...string) *[]string

func MergeNewPointers

func MergeNewPointers(slices ...*[]string) *[]string

func MergeNewSimple

func MergeNewSimple(simpleSlices ...[]string) []string

func MergeNewSlicesPtrOfSlices

func MergeNewSlicesPtrOfSlices(slices ...*[]string) *[]string

MergeNewSlicesPtrOfSlices Don't include nil or length 0 slices

func MergeNewSlicesPtrOfSlicesPtr

func MergeNewSlicesPtrOfSlicesPtr(slices *[]*[]string) *[]string

MergeNewSlicesPtrOfSlicesPtr Don't include nil or length 0 slices

func NonEmptyJoin

func NonEmptyJoin(slice *[]string, joiner string) string

func NonEmptySlice

func NonEmptySlice(slice []string) []string

func NonEmptySlicePtr

func NonEmptySlicePtr(slice *[]string) *[]string

func NonWhitespaceJoin

func NonWhitespaceJoin(slice *[]string, joiner string) string

func NonWhitespaceSlicePtr

func NonWhitespaceSlicePtr(slice *[]string) *[]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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