9951 explained code solutions for 126 technologies


golangMap usage example


package main
import "fmt"

func main() {
  mp := make(map[string]string)

  mp["name"] = "Joe"
  mp["position"] = "president"
}ctrl + c
package main

default package declaration

import "fmt"

loads fmt package to operate on strings (and print them)

make(map[string]string)

initialize map with string keys and string values

mp["name"]

set value of name key