errstr

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 6 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharCollectionMap added in v0.0.8

type CharCollectionMap struct {
	*corestr.CharCollectionMap
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyCharCollectionMap added in v0.0.8

func EmptyCharCollectionMap() *CharCollectionMap

func EmptyCharCollectionMapUsingError added in v0.0.8

func EmptyCharCollectionMapUsingError(
	wrapper *errorwrapper.Wrapper,
) *CharCollectionMap

wrapper nil will point to empty error wrapper

func NewCharCollectionMap added in v0.0.8

func NewCharCollectionMap(capacity int, eachCollectionCapacity int) *CharCollectionMap

func NewCharCollectionMapUsingItemsError added in v0.0.8

func NewCharCollectionMapUsingItemsError(
	items *[]string,
	err error,
	errVariation errtype.Variation,
) *CharCollectionMap

func NewCharCollectionMapUsingItemsErrorWrapper added in v0.0.8

func NewCharCollectionMapUsingItemsErrorWrapper(
	items *[]string,
	wrapper *errorwrapper.Wrapper,
) *CharCollectionMap

wrapper nil will point to empty error wrapper

func NewCharCollectionMapUsingPtrItemsError added in v0.0.8

func NewCharCollectionMapUsingPtrItemsError(
	ptrItems *[]*string,
	err error,
	errVariation errtype.Variation,
) *CharCollectionMap

type CharHashsetMap added in v0.0.8

type CharHashsetMap struct {
	*corestr.CharHashsetMap
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyCharHashsetMap added in v0.0.8

func EmptyCharHashsetMap() *CharHashsetMap

func EmptyCharHashsetMapUsingError added in v0.0.8

func EmptyCharHashsetMapUsingError(
	wrapper *errorwrapper.Wrapper,
) *CharHashsetMap

wrapper nil will point to empty error wrapper

func NewCharHashsetMap added in v0.0.8

func NewCharHashsetMap(capacity int, eachCollectionCapacity int) *CharHashsetMap

func NewCharHashsetMapUsingItemsError added in v0.0.8

func NewCharHashsetMapUsingItemsError(
	items *[]string,
	err error,
	errVariation errtype.Variation,
) *CharHashsetMap

func NewCharHashsetMapUsingItemsErrorWrapper added in v0.0.8

func NewCharHashsetMapUsingItemsErrorWrapper(
	items *[]string,
	wrapper *errorwrapper.Wrapper,
	eachHashsetCapacity int,
) *CharHashsetMap

wrapper nil will point to empty error wrapper

func NewCharHashsetMapUsingPtrItemsError added in v0.0.8

func NewCharHashsetMapUsingPtrItemsError(
	ptrItems *[]*string,
	err error,
	errVariation errtype.Variation,
) *CharHashsetMap

type Collection added in v0.0.8

type Collection struct {
	*corestr.Collection
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyCollection added in v0.0.8

func EmptyCollection() *Collection

func EmptyCollectionUsingError added in v0.0.8

func EmptyCollectionUsingError(
	wrapper *errorwrapper.Wrapper,
) *Collection

wrapper nil will point to empty error wrapper

func NewCollection added in v0.0.8

func NewCollection(capacity int) *Collection

func NewCollectionUsingItemsError added in v0.0.8

func NewCollectionUsingItemsError(
	items *[]string,
	isMakeClone bool,
	err error,
	errVariation errtype.Variation,
) *Collection

func NewCollectionUsingItemsErrorWrapper added in v0.0.8

func NewCollectionUsingItemsErrorWrapper(
	items *[]string,
	isMakeClone bool,
	wrapper *errorwrapper.Wrapper,
) *Collection

wrapper nil will point to empty error wrapper

func NewCollectionUsingLength added in v0.0.8

func NewCollectionUsingLength(len, capacity int) *Collection

func NewCollectionUsingPtrItemsError added in v0.0.8

func NewCollectionUsingPtrItemsError(
	ptrItems *[]*string,
	err error,
	errVariation errtype.Variation,
) *Collection

type Hashmap added in v0.0.8

type Hashmap struct {
	*corestr.Hashmap
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyHashmap added in v0.0.8

func EmptyHashmap() *Hashmap

func EmptyHashmapUsingErrorWrapper added in v0.0.8

func EmptyHashmapUsingErrorWrapper(
	wrapper *errorwrapper.Wrapper,
) *Hashmap

wrapper nil will point to empty error wrapper

func NewHashmap added in v0.0.8

func NewHashmap(capacity int) *Hashmap

func NewHashmapUsingCollection added in v0.0.8

func NewHashmapUsingCollection(
	keys, values *corestr.Collection,
) *Hashmap

func NewHashmapUsingError added in v0.0.8

func NewHashmapUsingError(
	keys, values *[]string,
	err error,
	errVariation errtype.Variation,
) *Hashmap

func NewHashmapUsingErrorNoType added in v0.0.8

func NewHashmapUsingErrorNoType(
	err error,
	keyAnyValuePairs ...corestr.KeyAnyValuePair,
) *Hashmap

func NewHashmapUsingItemsError added in v0.0.8

func NewHashmapUsingItemsError(
	keys, values *[]string,
	wrapper *errorwrapper.Wrapper,
) *Hashmap

wrapper nil will point to empty error wrapper

func NewHashmapUsingKeyAnyValPairs added in v0.0.8

func NewHashmapUsingKeyAnyValPairs(
	err error,
	errVariation errtype.Variation,
	keyAnyValuePairs ...corestr.KeyAnyValuePair,
) *Hashmap

func NewHashmapUsingKeyAnyValPairsPtr added in v0.0.8

func NewHashmapUsingKeyAnyValPairsPtr(
	keyAnyValuePairs *[]corestr.KeyAnyValuePair,
	err error,
	errVariation errtype.Variation,
) *Hashmap

func NewHashmapUsingKeyValPairs added in v0.0.8

func NewHashmapUsingKeyValPairs(
	err error,
	errVariation errtype.Variation,
	keyValuePairs ...corestr.KeyValuePair,
) *Hashmap

func NewHashmapUsingKeyValPairsPtr added in v0.0.8

func NewHashmapUsingKeyValPairsPtr(
	keyValuePairs *[]corestr.KeyValuePair,
	err error,
	errVariation errtype.Variation,
) *Hashmap

func NewHashmapUsingMap added in v0.0.8

func NewHashmapUsingMap(
	items *map[string]string,
	addCapacity int,
) *Hashmap

having addCapacity <= 0 , keeps the same pointer for the hashset.

func NewHashmapUsingMapError added in v0.0.8

func NewHashmapUsingMapError(
	items *map[string]string,
	err error,
	errVariation errtype.Variation,
) *Hashmap

type Hashset added in v0.0.8

type Hashset struct {
	*corestr.Hashset
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyHashset added in v0.0.8

func EmptyHashset() *Hashset

func EmptyHashsetUsingErrorWrapper added in v0.0.8

func EmptyHashsetUsingErrorWrapper(
	wrapper *errorwrapper.Wrapper,
) *Hashset

wrapper nil will point to empty error wrapper

func NewHashset added in v0.0.8

func NewHashset(capacity int) *Hashset

func NewHashsetUsingCollection added in v0.0.8

func NewHashsetUsingCollection(
	collection *corestr.Collection,
	addCapacity int,
) *Hashset

having addCapacity <= 0 , keeps the same pointer for the hashset.

func NewHashsetUsingError added in v0.0.8

func NewHashsetUsingError(
	items *[]string,
	err error,
	errVariation errtype.Variation,
) *Hashset

func NewHashsetUsingItemsError added in v0.0.8

func NewHashsetUsingItemsError(
	items *[]string,
	wrapper *errorwrapper.Wrapper,
	addCapacity int,
) *Hashset

wrapper nil will point to empty error wrapper

func NewHashsetUsingMap added in v0.0.8

func NewHashsetUsingMap(
	items *map[string]bool,
	addCapacity int,
) *Hashset

having addCapacity <= 0 , keeps the same pointer for the hashset.

func NewHashsetUsingMapError added in v0.0.8

func NewHashsetUsingMapError(
	items *map[string]bool,
	err error,
	errVariation errtype.Variation,
) *Hashset

func NewHashsetUsingPtrStringError added in v0.0.8

func NewHashsetUsingPtrStringError(
	items *[]*string,
	err error,
	errVariation errtype.Variation,
) *Hashset

func NewHashsetUsingPtrStringErrorNoType added in v0.0.8

func NewHashsetUsingPtrStringErrorNoType(
	items *[]*string,
	err error,
) *Hashset

func NewHashsetUsingStringErrorNoType added in v0.0.8

func NewHashsetUsingStringErrorNoType(
	items *[]string,
	err error,
) *Hashset

type HashsetsCollection added in v0.0.8

type HashsetsCollection struct {
	*corestr.HashsetsCollection
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyHashsetsCollection added in v0.0.8

func EmptyHashsetsCollection() *HashsetsCollection

func EmptyHashsetsCollectionUsingError added in v0.0.8

func EmptyHashsetsCollectionUsingError(
	wrapper *errorwrapper.Wrapper,
) *HashsetsCollection

wrapper nil will point to empty error wrapper

func NewHashsetsCollection added in v0.0.8

func NewHashsetsCollection(sets *[]corestr.Hashset) *HashsetsCollection

func NewHashsetsCollectionUsingHashsets added in v0.0.8

func NewHashsetsCollectionUsingHashsets(
	items *[]corestr.Hashset,
) *HashsetsCollection

func NewHashsetsCollectionUsingItemsError added in v0.0.8

func NewHashsetsCollectionUsingItemsError(
	items *[]*corestr.Hashset,
	wrapper *errorwrapper.Wrapper,
) *HashsetsCollection

wrapper nil will point to empty error wrapper

func NewHashsetsCollectionUsingLength added in v0.0.8

func NewHashsetsCollectionUsingLength(len, capacity int) *HashsetsCollection

func NewHashsetsCollectionUsingPtrHashsets added in v0.0.8

func NewHashsetsCollectionUsingPtrHashsets(
	items *[]*corestr.Hashset,
) *HashsetsCollection

type LinkedCollections added in v0.1.0

type LinkedCollections struct {
	*corestr.LinkedCollections
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyLinkedCollections added in v0.1.0

func EmptyLinkedCollections() *LinkedCollections

func EmptyLinkedCollectionsUsingError added in v0.1.0

func EmptyLinkedCollectionsUsingError(
	wrapper *errorwrapper.Wrapper,
) *LinkedCollections

wrapper nil will point to empty error wrapper

func NewLinkedCollections added in v0.1.0

func NewLinkedCollections() *LinkedCollections

func NewLinkedCollectionsUsingItemsError added in v0.1.0

func NewLinkedCollectionsUsingItemsError(
	items *[]string,
	isMakeClone bool,
	err error,
	errVariation errtype.Variation,
) *LinkedCollections

func NewLinkedCollectionsUsingItemsErrorWrapper added in v0.1.0

func NewLinkedCollectionsUsingItemsErrorWrapper(
	items *[]string,
	isMakeClone bool,
	wrapper *errorwrapper.Wrapper,
) *LinkedCollections

wrapper nil will point to empty error wrapper

func NewLinkedCollectionsUsingPtrItemsError added in v0.1.0

func NewLinkedCollectionsUsingPtrItemsError(
	ptrItems *[]*string,
	err error,
	errVariation errtype.Variation,
) *LinkedCollections

type LinkedList added in v0.1.0

type LinkedList struct {
	*corestr.LinkedList
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyLinkedList added in v0.1.0

func EmptyLinkedList() *LinkedList

func EmptyLinkedListUsingError added in v0.1.0

func EmptyLinkedListUsingError(
	wrapper *errorwrapper.Wrapper,
) *LinkedList

wrapper nil will point to empty error wrapper

func NewLinkedList added in v0.1.0

func NewLinkedList() *LinkedList

func NewLinkedListUsingItemsError added in v0.1.0

func NewLinkedListUsingItemsError(
	items *[]string,
	err error,
	errVariation errtype.Variation,
) *LinkedList

func NewLinkedListUsingItemsErrorWrapper added in v0.1.0

func NewLinkedListUsingItemsErrorWrapper(
	items *[]string,
	wrapper *errorwrapper.Wrapper,
) *LinkedList

wrapper nil will point to empty error wrapper

func NewLinkedListUsingPtrItemsError added in v0.1.0

func NewLinkedListUsingPtrItemsError(
	ptrItems *[]*string,
	err error,
	errVariation errtype.Variation,
) *LinkedList

type Result

type Result struct {
	Value        string
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyErrorResult

func EmptyErrorResult(
	result string,
) Result

func EmptyErrorResultPtr

func EmptyErrorResultPtr(
	result string,
) *Result

func Error added in v0.2.0

func Error(
	err error,
) Result

func ErrorPtr added in v0.2.0

func ErrorPtr(
	err error,
) *Result

func ErrorWrapper added in v0.2.0

func ErrorWrapper(
	errW *errorwrapper.Wrapper,
) Result

func ErrorWrapperPtr added in v0.2.0

func ErrorWrapperPtr(
	errW *errorwrapper.Wrapper,
) *Result

func New

func New(
	result string,
	variation errtype.Variation,
	errMsg string,
) Result

func NewError

func NewError(result string, err error) Result

func NewErrorWithType

func NewErrorWithType(
	result string,
	variation errtype.Variation,
	err error,
) Result

func NewPtr

func NewPtr(
	result string,
	variation errtype.Variation,
	errMsg string,
) *Result

func NewSimple

func NewSimple(
	result string,
	variation errtype.Variation,
) Result

func NewUsingWrapper added in v0.2.0

func NewUsingWrapper(
	result string,
	errW *errorwrapper.Wrapper,
) Result

func NewUsingWrapperPtr added in v0.2.0

func NewUsingWrapperPtr(
	result string,
	errW *errorwrapper.Wrapper,
) *Result

type Result2

type Result2 struct {
	Value        string
	Value2       string
	ErrorWrapper *errorwrapper.Wrapper
}

func New2

func New2(
	result,
	result2 string,
	variation errtype.Variation,
	errMsg string,
) Result2

func New2Ptr

func New2Ptr(
	result,
	result2 string,
	variation errtype.Variation,
	errMsg string,
) *Result2

type Result3

type Result3 struct {
	Value        string
	Value2       string
	Value3       string
	ErrorWrapper *errorwrapper.Wrapper
}

func New3

func New3(
	result,
	result2,
	result3 string,
	variation errtype.Variation,
	errMsg string,
) Result3

func New3Ptr

func New3Ptr(
	result,
	result2,
	result3 string,
	variation errtype.Variation,
	errMsg string,
) *Result3

type ResultWithApplicable

type ResultWithApplicable struct {
	Value        string
	IsApplicable bool
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyErrorApplicableResult

func EmptyErrorApplicableResult(
	result string,
	isApplicable bool,
) ResultWithApplicable

func EmptyErrorApplicableResultPtr

func EmptyErrorApplicableResultPtr(
	result string,
	isApplicable bool,
) *ResultWithApplicable

func NewApplicable

func NewApplicable(
	result string,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) ResultWithApplicable

func NewApplicablePtr

func NewApplicablePtr(
	result string,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) *ResultWithApplicable

type ResultWithApplicable2

type ResultWithApplicable2 struct {
	Value        string
	Value2       string
	IsApplicable bool
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyErrorApplicableResult2

func EmptyErrorApplicableResult2(
	result,
	result2 string,
	isApplicable bool,
) ResultWithApplicable2

func EmptyErrorApplicableResult2Ptr

func EmptyErrorApplicableResult2Ptr(
	result,
	result2 string,
	isApplicable bool,
) *ResultWithApplicable2

func NewApplicable2

func NewApplicable2(
	result,
	result2 string,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) ResultWithApplicable2

func NewApplicable2Ptr

func NewApplicable2Ptr(
	result,
	result2 string,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) *ResultWithApplicable2

type Results

type Results struct {
	Values       *[]string
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyErrorResults

func EmptyErrorResults(
	values ...string,
) Results

func EmptyErrorResultsPtr

func EmptyErrorResultsPtr(
	values *[]string,
) *Results

func NewResults

func NewResults(
	variation errtype.Variation,
	errMsg string,
	values ...string,
) Results

func NewResultsPtr

func NewResultsPtr(
	values *[]string,
	err error,
) *Results

func NewResultsUsingWrapperPtr added in v0.2.1

func NewResultsUsingWrapperPtr(
	values *[]string,
	errW *errorwrapper.Wrapper,
) *Results

func ResultsError added in v0.0.5

func ResultsError(
	variation errtype.Variation,
	err error,
) *Results

func (*Results) IsEmptyResult

func (results *Results) IsEmptyResult() bool

func (*Results) IsNull

func (results *Results) IsNull() bool

Jump to

Keyboard shortcuts

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