Suppose you have a string variable — source := "golang". Match the methods of the strings package with the correct method output.
String search
Strings methods
Report a typo
Match the items from left and right columns
strings.HasPrefix(source, "go")strings.HasSuffix(source, "go")strings.Index(source, "g")strings.Count(source, "")falsetrue70 ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.