gitlab.com/evatix-go/core@v1.3.55/coredata/corestr/CharCollectionDataModel.go (about)

     1  package corestr
     2  
     3  type CharCollectionDataModel struct {
     4  	Items                  map[byte]*Collection `json:"CharacterVsStringsCollectionMap"`
     5  	EachCollectionCapacity int
     6  }
     7  
     8  func NewCharCollectionMapUsingDataModel(dataModel *CharCollectionDataModel) *CharCollectionMap {
     9  	return &CharCollectionMap{
    10  		items:                  dataModel.Items,
    11  		eachCollectionCapacity: dataModel.EachCollectionCapacity,
    12  	}
    13  }
    14  
    15  func NewCharCollectionMapDataModelUsing(dataIn *CharCollectionMap) *CharCollectionDataModel {
    16  	return &CharCollectionDataModel{
    17  		Items:                  dataIn.items,
    18  		EachCollectionCapacity: dataIn.eachCollectionCapacity,
    19  	}
    20  }