Go Program to Print String Characters

Write a Go program to print the total characters in a given string. In this example, we are printing the complete string. package main import “fmt” func main() { var strData string strData = “Tutorial Gateway” fmt.Printf(“%s”, strData) fmt.Println(strData) } Go Program to Print String Characters using For loop The for loop (for i := … Read more