You need to initialize it with an empty map:
var ir_MAP = map[int]ir_table{}
or, as “the system” suggested:
var ir_MAP = make(map[int]ir_table)
The problem is that the zero value of a map is nil, and you can’t add items to a nil map.
You need to initialize it with an empty map:
var ir_MAP = map[int]ir_table{}
or, as “the system” suggested:
var ir_MAP = make(map[int]ir_table)
The problem is that the zero value of a map is nil, and you can’t add items to a nil map.