Clés d'accès de la carte à l'aide de la gamme Go

// Program to retrieve the keys of a map

package main
import ("fmt")

func main() {

  // create a map
  subjectMarks := map[string]float32{"Java": 80, "Python": 81, "Golang": 85}

  fmt.Println("Subjects:")
  for subject := range subjectMarks {
    fmt.Println( subject)
  }
}
SAMER SAEID