From 670406960b6ad728b203a944e47a9ed98aab9c5b Mon Sep 17 00:00:00 2001 From: Alexey Markov Date: Sat, 4 Apr 2020 22:59:20 -0500 Subject: [PATCH] colorsMap is not used in the code --- .../02_Core Datatypes/08_The Slice Type/index.md" | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git "a/00_A$AP Learn \360\237\232\200/02_Core Datatypes/08_The Slice Type/index.md" "b/00_A$AP Learn \360\237\232\200/02_Core Datatypes/08_The Slice Type/index.md" index b50ad21..42c2e28 100644 --- "a/00_A$AP Learn \360\237\232\200/02_Core Datatypes/08_The Slice Type/index.md" +++ "b/00_A$AP Learn \360\237\232\200/02_Core Datatypes/08_The Slice Type/index.md" @@ -14,20 +14,7 @@ import ( // NB: Across these examples, we frequently use the built-in `len(something)` function, // that gives us the number of elements in our array, map, or slice -func main() { - colorsMap := map[string]string{ - "AliceBlue": "#F0F8FF", - "AntiqueWhite": "#FAEBD7", - "Aqua": "#00FFFF", - "Aquamarine": "#7FFFD4", - "Azure": "#F0FFFF", - "Red": "#FF0000", - "Green": "#008000", - "Blue": "#0000FF", - "Yellow": "#FFFF00", - "White": "#FFFFFF", - } - +func main() { // We use `make` to create an empty slice of our desired type, length, and, optionally, capacity // NB: Below, 0 is the length of our slice, and 10 is the capacity. This means that Go // will allocate memory for 10 elements and `append()` will be a cheap operation until we exceed