79177470

Date: 2024-11-11 11:33:06
Score: 1
Natty:
Report link

A map in Go needs to be initialized before you can use it. When you declare var m map[string]int, the map is nil by default.

use m := make(map[string]int)

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Prasang Darji