How can i encode my string as ascii byte array?
In go
How can i encode my string as ascii byte array?
In go
If you're looking for a conversion, just do byteArray := []byte(myString)
The language spec details conversions between strings and certain types of arrays (byte for bytes, int for Unicode points)