don't really understand what the parameter after the
/
is for so I've ignored it.
I suspect that "k" parameter has "itemUser1:itemKey1[/itemUser2:itemKey2[/...]]" format.
don't really understand what the parameter after the
/
is for so I've ignored it.
I suspect that "k" parameter has "itemUser1:itemKey1[/itemUser2:itemKey2[/...]]" format.
Just for clarity, in my case this code:
items := strings.Split(itm.Key,"/") args := strings.Split(items[len(items)-1], ":")
works in the same way as
items := strings.Split(itm.Key,"/") args := strings.Split(items[0], ":")
This is what I came up with in the end
Ah... That makes more sense. That means my patch is probably not optimal.
The mega code seems to loop looking for a valid key whereas the code at the moment only looks at the first one.