The len() Function is used to return the length of a String.
package main import "fmt" func main() { x := "Hello" fmt.Println("The length of the String is :",len(x)) }