Skip to content

Instantly share code, notes, and snippets.

@horlabyc

horlabyc/main.go Secret

Created January 4, 2022 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save horlabyc/e766e2bcf79fcb4463b0ce7f8e55a938 to your computer and use it in GitHub Desktop.
Save horlabyc/e766e2bcf79fcb4463b0ce7f8e55a938 to your computer and use it in GitHub Desktop.
Map data
package main
import (
"encoding/csv"
"log"
"os"
"strconv"
)
func mapData(gameNames []string, sales []float64) CountList {
dataMap := map[string]float64{}
for index, value := range gameNames {
dataMap[value] = sales[index]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment