Complete the code to get the length of the string.
length := len([1])
The len function returns the number of characters in the string variable text.
Complete the code to access the first character of the string.
firstChar := [1][0]
To get the first character, use the string variable text with index 0.
Fix the error in the code to convert the string to a slice of bytes.
bytes := []byte([1])To convert the string variable text to bytes, pass the variable itself inside []byte().
Fill both blanks to create a substring from index 1 to 3.
substring := [1][[2]:4]
Use the string variable text and slice it from index 1 to 4 (exclusive) to get the substring.
Fill all three blanks to check if the string length is greater than 5 and print a message.
if len([1]) [2] [3] { fmt.Println("Long string") }
Check if the length of text is greater than 5 using the > operator.
