map memory ownership for strings

Hi! Can your please tell me, where does memory for map keys lives in such situation:

dict := map[string]string
line := dummy_string_generator()
key_value_list := strings.split_n(line, " ", 2)
dict[key_value_list[0]] = key_value_list[1]

Is the owner of dict[key] still the line variable? And if I want to free it and still keep dict intact, do I need to set it's values in some way like

dict[strings.clone(key_value_list[0])] = strings.clone(key_value_list[1])

?

reddit.com
u/dmchmk — 13 days ago

One of the rows is suddenly unresponsive

hi guys and gals! Can you please help me understand the issue with my Lily58? I'm much more of a software guy than a hardware one, so please, sorry for maybe stupid questions.

Some background story:

I have Lili58Pro originally with two nRFMicro 1.4.x. One day a several months ago controller on the left half started eating the full battery in hours instead of weeks (I'm using 1000mah batteries). Don't know why and as I'm too stupid to debug PCBs, I've decided just to swap it completely to a new controller. On nrfmicro's github wiki I've read about SuperMini NRF52840 and ordered some. When they arrived, I've soldered on the pins, built new firmware as they're nice!nano clones according to ZMK and everything worked fine. For couple of months.

The issue:

Suddenly this week left half's third row (caps, a, s, d, f, g) stopped working. Everything else still worked the same. I thought, maybe, I've used too much flux and solder just degraded on one of the pins? Okay, I have some spare controller boards now, soldered pins to one more, flashed, connected - lol, the issue stays the same. BUT. If while typing the faulty row I push the board to the left with other hand, it starts working! (on the video). Well, I thought, let's try the original controller board, the one eating battery - and there's no such issue there%)

What is going on? Did the controller board socket on the keyboard pcb degraded somehow? Is it even possible? I don't move this keyboard anywhere from the house, and even the desk with my computer

u/dmchmk — 3 months ago