Go 字符串长度


Go 字符串长度

package main



import "fmt"



func main() {

   var greeting =  "Hello world!"



   fmt.Printf("String Length is: ")

   fmt.Println(len(greeting))  

}