Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2020 12:36
What would you like to do?
func main() {
students := make(map[int]string)
students[0] = "Harsh"
students[1] = "Yash"
delete(students, 1)
students[1] = "Jain"
for roll, name := range students{
fmt.Printf("Roll number of %s is %d \n",name, roll)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment