Post

GoLangGoLang

v
veerubhotla sowmithri

Posted on 20th May 2024|89 views

0
votes

Assignment To Entry In Nil Map

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

Answers
P
kumar san

Posted on 20th May 2024

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