14. Strings
String Types
Declaring String
var str1 string = "Hello, World!"
var str2 = "Hello, World!"
str3 := "Hello, World!"Length of string
fmt.Printf("length of str1 is %d \n", len(str1))Sub-string operation
Blog Posts
Last updated