Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   






len() FUNCTION


len() Function


The len() Function is used to return the length of a String.


Example :



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


Output :



 The length of the String is 5