gitlab.com/evatix-go/core@v1.3.55/coredata/corestr/CharHashsetDataModel.go (about) 1 package corestr 2 3 type CharHashsetDataModel struct { 4 Items map[byte]*Hashset `json:"CharacterVsHashsetMap"` 5 EachHashsetCapacity int 6 } 7 8 func NewCharHashsetMapUsingDataModel(dataModel *CharHashsetDataModel) *CharHashsetMap { 9 return &CharHashsetMap{ 10 items: dataModel.Items, 11 eachHashsetCapacity: dataModel.EachHashsetCapacity, 12 } 13 } 14 15 func NewCharHashsetMapDataModelUsing(dataIn *CharHashsetMap) *CharHashsetDataModel { 16 return &CharHashsetDataModel{ 17 Items: dataIn.items, 18 EachHashsetCapacity: dataIn.eachHashsetCapacity, 19 } 20 }