Strings In Depth1 / 17
Up next

Concatenation and length

package main

import "fmt"

func main() {
	greeting := "hi" + " " + "there"
	fmt.Println(greeting)
	// len returns the number of BYTES, not characters
	fmt.Println(len(greeting))
}
What you're solving

+ joins, len counts bytes