Go Program to Find String Length

Write a Go program to find the length of a string. In this Golang example, we used the built-in len function to find the given string length. package main import ( “fmt” ) func main() { str := “Tutorial Gateway” fmt.Println(str) length := len(str) fmt.Println(“The Length of a Given String = “, length) } Go … Read more