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)


initialize map with string keys and string values


set value of name key