go-examples

Get Set Learn Go


Project maintained by sagar-jadhav Hosted on GitHub Pages — Theme by mattgraham

String Length

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))
}

Output

Length of go-examples string is 11
Try It Out Source Code

Contributors

« Home Page Previous « Format Verbs Next » Pointer