Get Set Learn Go
Example demonstrates how to calculate length of string. Click here to learn more
func main() {
repositoryName := "go-examples"
fmt.Println("Length of", repositoryName,
"string is", len(repositoryName))
}
Length of go-examples string is 11
Try It Out | Source Code |
« Home Page | Previous « Format Verbs | Next » Pointer |