Documentation
¶
Index ¶
- func AllElemLengthSlices(slices ...*[]string) int
- func AllElemLengthSlicesPtr(slices *[]*[]string) int
- func Clone(slice []string) (slicePtr []string)
- func ClonePtr(slice *[]string) (slicePtr *[]string)
- func CloneSimpleSliceToPointers(slice []string) (slicePtr *[]string)
- func Empty() []string
- func EmptyPtr() *[]string
- func ExpandByFunc(slice *[]string, expandFunc func(line string) *[]string) *[]string
- func ExpandBySplit(slice *[]string, splitter string) *[]string
- func ExpandBySplitsPtr(slice *[]string, splitters ...string) *[]string
- func First(slice []string) string
- func FirstLastDefault(slice []string) (first, last string)
- func FirstLastDefaultPtr(slice *[]string) (first, last string)
- func FirstOrDefault(slice []string) string
- func FirstOrDefaultPtr(slice *[]string) string
- func FirstOrDefaultWith(slice []string, def string) (result string, isSuccess bool)
- func FirstPtr(slice *[]string) string
- func HasAnyItem(slice []string) bool
- func HasAnyItemPtr(slice *[]string) bool
- func InPlaceReverse(list *[]string) *[]string
- func IndexAt(slice []string, index int) string
- func IndexesDefault(slice []string, indexes ...int) (values []string)
- func IsEmpty(slice []string) bool
- func IsEmptyPtr(slice *[]string) bool
- func Last(slice []string) string
- func LastIndexPtr(slice *[]string) int
- func LastOrDefault(slice []string) string
- func LastOrDefaultPtr(slice *[]string) string
- func LastPtr(slice *[]string) string
- func LastSafeIndexPtr(slice *[]string) int
- func LengthOfPointer(slices *[]string) int
- func LinesProcess(lines []string, ...) []string
- func LinesSimpleProcess(splitsLines []string, lineProcessor func(lineIn string) (lineOut string)) []string
- func LinesSimpleProcessNoEmpty(splitsLines []string, lineProcessor func(lineIn string) (lineOut string)) []string
- func Make(length, capacity int) []string
- func MakeDefault(capacity int) []string
- func MakeDefaultPtr(capacity int) *[]string
- func MakePtr(length, capacity int) *[]string
- func MergeNew(firstSlice []string, additionalItems ...string) *[]string
- func MergeNewPointers(slices ...*[]string) *[]string
- func MergeNewSimple(simpleSlices ...[]string) []string
- func MergeNewSlicesPtrOfSlices(slices ...*[]string) *[]string
- func MergeNewSlicesPtrOfSlicesPtr(slices *[]*[]string) *[]string
- func NonEmptyJoin(slice *[]string, joiner string) string
- func NonEmptySlice(slice []string) []string
- func NonEmptySlicePtr(slice *[]string) *[]string
- func NonWhitespaceJoin(slice []string, joiner string) string
- func NonWhitespaceJoinPtr(slice *[]string, joiner string) string
- func NonWhitespaceSlice(slice []string) []string
- func NonWhitespaceSlicePtr(slice *[]string) *[]string
- func NonWhitespaceTrimSlice(slice []string) []string
- func NonWhitespaceTrimSlicePtr(slice *[]string) *[]string
- func PrependNew(secondSlice []string, prependingItems ...string) *[]string
- func SafeIndexAt(slice []string, index int) string
- func SafeIndexAtUsingLastIndex(slice []string, lastIndex, index int) string
- func SafeIndexAtUsingLastIndexPtr(slice *[]string, lastIndex, index int) string
- func SafeIndexAtWith(slice []string, index int, defaultVal string) string
- func SafeIndexAtWithPtr(slice *[]string, index int, defaultVal string) string
- func SafeIndexesDefault(slice []string, indexes ...int) (values []string)
- func SafeIndexesDefaultPtr(slice *[]string, indexes ...int) (values *[]string)
- func SafeRangeItems(slice []string, start, end int) []string
- func SafeRangeItemsPtr(slice *[]string, start, end int) *[]string
- func SlicePtr(slice []string) (slicePtr *[]string)
- type FirstLastStatus
- type IndexValuesDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllElemLengthSlices ¶
func AllElemLengthSlicesPtr ¶
func Clone ¶ added in v0.5.2
Clone on nil or empty makes new &[]string{} else makes a copy of itself
func ClonePtr ¶ added in v0.5.2
ClonePtr on nil or empty makes new &[]string{} else makes a copy of itself
func CloneSimpleSliceToPointers ¶ added in v0.5.2
CloneSimpleSliceToPointers on nil or empty makes new &[]string{} else makes a copy of itself
func ExpandByFunc ¶
ExpandByFunc Don't include nil or empty slice from expand
func ExpandBySplit ¶
ExpandBySplit Take each slice item, split and add to the new slice array and returns it.
func ExpandBySplitsPtr ¶
ExpandBySplitsPtr Take each slice item, split and add to the new slice array and returns it.
func FirstLastDefault ¶ added in v0.5.1
func FirstLastDefaultPtr ¶ added in v0.5.1
func FirstOrDefault ¶ added in v0.5.1
func FirstOrDefaultPtr ¶ added in v0.5.1
func FirstOrDefaultWith ¶ added in v0.5.1
func HasAnyItem ¶ added in v0.5.1
func HasAnyItemPtr ¶ added in v0.5.1
func InPlaceReverse ¶
func IndexesDefault ¶ added in v0.5.1
func IsEmptyPtr ¶ added in v0.5.1
func LastIndexPtr ¶ added in v0.5.1
func LastOrDefault ¶ added in v0.5.1
func LastOrDefaultPtr ¶ added in v0.5.1
func LastSafeIndexPtr ¶ added in v0.5.1
func LengthOfPointer ¶
func LinesProcess ¶ added in v0.5.2
func LinesProcess( lines []string, lineProcessor func(index int, lineIn string) (lineOut string, isTake, isBreak bool), ) []string
LinesProcess split text using constants.NewLineUnix then returns lines processed by lineProcessor
func LinesSimpleProcess ¶ added in v0.5.2
func LinesSimpleProcess( splitsLines []string, lineProcessor func(lineIn string) (lineOut string), ) []string
LinesSimpleProcess split text using constants.NewLineUnix then returns lines processed by lineProcessor
func LinesSimpleProcessNoEmpty ¶ added in v0.5.2
func LinesSimpleProcessNoEmpty( splitsLines []string, lineProcessor func(lineIn string) (lineOut string), ) []string
LinesSimpleProcessNoEmpty split text using constants.NewLineUnix then returns lines processed by lineProcessor and don't take any empty string in the output. Empty string lineOut will be discarded from the final outputs.
func MakeDefault ¶
func MakeDefaultPtr ¶ added in v0.5.3
func MergeNewPointers ¶
func MergeNewSimple ¶
func MergeNewSlicesPtrOfSlices ¶
MergeNewSlicesPtrOfSlices Don't include nil or length 0 slices
func MergeNewSlicesPtrOfSlicesPtr ¶
MergeNewSlicesPtrOfSlicesPtr Don't include nil or length 0 slices
func NonEmptyJoin ¶
func NonEmptySlice ¶
func NonEmptySlicePtr ¶
func NonWhitespaceJoin ¶
func NonWhitespaceJoinPtr ¶ added in v0.5.3
func NonWhitespaceSlice ¶ added in v0.5.2
func NonWhitespaceSlicePtr ¶
func NonWhitespaceTrimSlice ¶ added in v0.5.2
func NonWhitespaceTrimSlicePtr ¶ added in v0.5.2
func PrependNew ¶ added in v0.4.6
func SafeIndexAt ¶ added in v0.5.1
func SafeIndexAtUsingLastIndex ¶ added in v0.5.2
func SafeIndexAtUsingLastIndexPtr ¶ added in v0.5.2
func SafeIndexAtWith ¶ added in v0.5.1
func SafeIndexAtWithPtr ¶ added in v0.5.1
func SafeIndexesDefault ¶ added in v0.5.1
SafeIndexesDefault Only indexes which are present values will be included.
Warning : Not found indexes will not be included in the values.
func SafeIndexesDefaultPtr ¶ added in v0.5.1
SafeIndexesDefaultPtr Only indexes which are present values will be included.
Warning : Not found indexes will not be included in the values.
func SafeRangeItems ¶ added in v0.5.2
func SafeRangeItemsPtr ¶ added in v0.5.2
Types ¶
type FirstLastStatus ¶ added in v0.5.1
func FirstLastDefaultStatus ¶ added in v0.5.1
func FirstLastDefaultStatus(slice []string) *FirstLastStatus
func FirstLastDefaultStatusPtr ¶ added in v0.5.1
func FirstLastDefaultStatusPtr(slice *[]string) *FirstLastStatus
func InvalidFirstLastStatus ¶ added in v0.5.1
func InvalidFirstLastStatus() *FirstLastStatus
func InvalidFirstLastStatusForLast ¶ added in v0.5.1
func InvalidFirstLastStatusForLast(first string) *FirstLastStatus
type IndexValuesDetail ¶ added in v0.5.1
type IndexValuesDetail struct { Values []string MissingIndexes []int IsAnyMissing bool IsValid bool // represent all missing or not found any }
func InvalidIndexValuesDetail ¶ added in v0.5.1
func InvalidIndexValuesDetail() *IndexValuesDetail
func SafeIndexesDefaultWithDetail ¶ added in v0.5.1
func SafeIndexesDefaultWithDetail(slice []string, indexes ...int) *IndexValuesDetail
SafeIndexesDefaultWithDetail Only indexes which are present values will be included.
Warning : Not found indexes will not be included in the values.
Source Files
¶
- AllElemLengthSlices.go
- AllElemLengthSlicesPtr.go
- Clone.go
- ClonePtr.go
- CloneSimpleSliceToPointers.go
- Empty.go
- EmptyPtr.go
- ExpandByFunc.go
- ExpandBySplit.go
- ExpandBySplitsPtr.go
- First.go
- FirstLastDefault.go
- FirstLastDefaultPtr.go
- FirstLastDefaultStatus.go
- FirstLastDefaultStatusPtr.go
- FirstLastStatus.go
- FirstOrDefault.go
- FirstOrDefaultPtr.go
- FirstOrDefaultWith.go
- FirstPtr.go
- HasAnyItem.go
- HasAnyItemPtr.go
- InPlaceReverse.go
- IndexAt.go
- IndexValuesDetail.go
- IndexesDefault.go
- IsEmpty.go
- IsEmptyPtr.go
- Last.go
- LastIndexPtr.go
- LastOrDefault.go
- LastOrDefaultPtr.go
- LastPtr.go
- LastSafeIndexPtr.go
- LengthOfPointer.go
- LinesProcess.go
- LinesSimpleProcess.go
- LinesSimpleProcessNoEmpty.go
- Make.go
- MakeDefault.go
- MakeDefaultPtr.go
- MakePtr.go
- MergeNew.go
- MergeNewPointers.go
- MergeNewSimple.go
- MergeNewSlicesPtrOfSlices.go
- MergeNewSlicesPtrOfSlicesPtr.go
- NonEmpty.go
- NonEmptyJoin.go
- NonEmptySlicePtr.go
- NonWhitespaceJoin.go
- NonWhitespaceJoinPtr.go
- NonWhitespaceSlice.go
- NonWhitespaceSlicePtr.go
- NonWhitespaceTrimSlice.go
- NonWhitespaceTrimSlicePtr.go
- PrependNew.go
- SafeIndexAt.go
- SafeIndexAtUsingLastIndex.go
- SafeIndexAtUsingLastIndexPtr.go
- SafeIndexAtWith.go
- SafeIndexAtWithPtr.go
- SafeIndexesDefault.go
- SafeIndexesDefaultPtr.go
- SafeIndexesDefaultWithDetail.go
- SafeRangeItems.go
- SafeRangeItemsPtr.go
- SlicePtr.go