gitlab.com/evatix-go/core@v1.3.55/cmd/main/getMapAnyItems.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/coredata/coredynamic" 7 "gitlab.com/evatix-go/core/coredata/corestr" 8 ) 9 10 func getMapAnyItems() *coredynamic.MapAnyItems { 11 fmt.Println("MapAnyItems") 12 mapAnyItems := coredynamic.NewMapAnyItems(200) 13 collection := corestr.New.Collection.Cap(100) 14 collection.Adds("alim-1", "alim-2", "alim-3", "alim-4") 15 mapAnyItems.Add("alim-something", collection) 16 mapAnyItems.Add("alim-something2", collection) 17 mapAnyItems.Add("alim-something3", collection.ConcatNew(1, "alim 5")) 18 mapAnyItems.Add("alim-something4", collection) 19 mapAnyItems.Add("alim-something5", collection) 20 mapAnyItems.Add("alim-something6", collection) 21 mapAnyItems.Add("alim-something7", collection) 22 mapAnyItems.Add("alim-something8", collection) 23 mapAnyItems.Add("alim-something9", collection) 24 25 return mapAnyItems 26 }