In the example below we are looking at how to take the first x number of characters from the start of a . If we know a character we want to separate on, like a space, we can use strings.() instead. But for this we’re looking to get the first 6 characters as a new .
To do this we first convert it into a rune, allowing for better support in different languages and allowing us to use it like an array.

Source link


Please enter your comment!
Please enter your name here