gitlab.com/evatix-go/core@v1.3.55/coredata/corestr/emptyCreator.go (about) 1 package corestr 2 3 type emptyCreator struct{} 4 5 func (it *emptyCreator) Collection() *Collection { 6 return &Collection{ 7 items: []string{}, 8 } 9 } 10 11 func (it *emptyCreator) CollectionPtr() *CollectionPtr { 12 return &CollectionPtr{ 13 items: []*string{}, 14 } 15 } 16 17 func (it *emptyCreator) LinkedList() *LinkedList { 18 return &LinkedList{} 19 } 20 21 func (it *emptyCreator) SimpleSlice() *SimpleSlice { 22 return &SimpleSlice{ 23 Items: nil, 24 } 25 } 26 27 func (it *emptyCreator) KeyAnyValuePair() *KeyAnyValuePair { 28 return &KeyAnyValuePair{} 29 } 30 31 func (it *emptyCreator) KeyValuePair() *KeyValuePair { 32 return &KeyValuePair{} 33 } 34 35 func (it *emptyCreator) KeyValueCollection() *KeyValueCollection { 36 return &KeyValueCollection{ 37 KeyValuePairs: []*KeyValuePair{}, 38 } 39 } 40 41 func (it *emptyCreator) LinkedCollections() *LinkedCollections { 42 return &LinkedCollections{} 43 } 44 45 func (it *emptyCreator) LeftRight() *LeftRight { 46 return &LeftRight{} 47 } 48 49 func (it *emptyCreator) SimpleStringOnce() SimpleStringOnce { 50 return SimpleStringOnce{} 51 } 52 53 func (it *emptyCreator) SimpleStringOncePtr() *SimpleStringOnce { 54 return &SimpleStringOnce{} 55 } 56 57 func (it *emptyCreator) Hashset() *Hashset { 58 return &Hashset{ 59 hasMapUpdated: false, 60 isEmptySet: true, 61 length: 0, 62 items: map[string]bool{}, 63 } 64 } 65 66 func (it *emptyCreator) HashsetsCollection() *HashsetsCollection { 67 return &HashsetsCollection{ 68 items: nil, 69 } 70 } 71 72 func (it *emptyCreator) Hashmap() *Hashmap { 73 return &Hashmap{ 74 isEmptySet: true, 75 items: map[string]string{}, 76 } 77 } 78 79 func (it *emptyCreator) CharCollectionMap() *CharCollectionMap { 80 return &CharCollectionMap{ 81 items: nil, 82 } 83 } 84 85 func (it *emptyCreator) KeyValuesCollection() *KeyValueCollection { 86 return &KeyValueCollection{ 87 KeyValuePairs: nil, 88 } 89 } 90 91 func (it *emptyCreator) CollectionsOfCollectionPtr() *CollectionsOfCollectionPtr { 92 return &CollectionsOfCollectionPtr{ 93 items: nil, 94 } 95 } 96 97 func (it *emptyCreator) CollectionsOfCollection() *CollectionsOfCollection { 98 return &CollectionsOfCollection{ 99 items: nil, 100 } 101 } 102 103 func (it *emptyCreator) CharHashsetMap() *CharHashsetMap { 104 return &CharHashsetMap{ 105 items: nil, 106 } 107 }