logo-MindMajix
PostGoLangGoLang
v
veerubhotla sowmithri

Posted on 21st July 2024|90 views

0
votes

Assignment To Entry In Nil Map

Why we get this error: "assignment to entry in nil map" in Go

1 answers
Answers
P
kumar san

Posted on 21st July 2024| views

This error occurs when you try to add elements in an empty or nil map. Before adding the elements, we have to initialize the map through the "make" function.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number