Temukan panjang string
// Program to count the length of a string
package main
import ("fmt")
func main() {
// creating string
message := "Welcome to Programiz"
// using len() function to count length
stringLength := len(message)
fmt.Println("Length of a string is:", len(stringMessage))
}
SAMER SAEID