gitlab.com/evatix-go/core@v1.3.55/coredata/corepayload/emptyCreator.go (about) 1 package corepayload 2 3 import ( 4 "gitlab.com/evatix-go/core/coredata/coredynamic" 5 "gitlab.com/evatix-go/core/coredata/corestr" 6 ) 7 8 type emptyCreator struct{} 9 10 func (it *emptyCreator) Attributes() *Attributes { 11 return &Attributes{} 12 } 13 14 func (it *emptyCreator) AttributesDefaults() *Attributes { 15 return &Attributes{ 16 KeyValuePairs: corestr.Empty.Hashmap(), 17 AnyKeyValuePairs: coredynamic.EmptyMapAnyItems(), 18 DynamicPayloads: []byte{}, 19 } 20 } 21 22 func (it *emptyCreator) PayloadWrapper() *PayloadWrapper { 23 return &PayloadWrapper{} 24 } 25 26 func (it *emptyCreator) PayloadsCollection() *PayloadsCollection { 27 return &PayloadsCollection{ 28 Items: []*PayloadWrapper{}, 29 } 30 }