func mapExample() { cMap := concurrentmap.ConcurrentMap1{} cMap.ConstructMap(111) fmt.Println("Writing some values...") cMap.Put("1", "cat") cMap.Put("2", "dog") cMap.Put("3", "zebra") fmt.Println("Reading...") v, e := cMap.Get("1") fmt.Println("Key: 1,", "Value:", v, e) v, e = cMap.Get("2") fmt.Println("Key: 2,", "Value:", v, e) v, e = cMap.Get("3") fmt.Println("Key: 3,", "Value:", v, e) cMap.DestructMap() <-time.After(time.Second * 2) }