In java, we can use the method of String : byte[] getBytes(Charset charset) . This method Encodes a String into a sequence of bytes using the given charset, storing the result into a new byte array.
But how to do this in GO? Is there any similar way in Go can do this?
Please let me know it.