I have a []byte that which is essentially a string, in this array I have found something I want to change using index:
content []byte
key []byte
newKey []byte
i = bytes.Index(content, key)
So I have found key in content (at index I), now I want to replace key with newKey but I can't seem to find a way to add it in I was trying the obvious thing that wouldn't work :)
content[i] = newKey
Is there some function that allows me to replace "key" with "newKey" within content []byte?
Thanks,