Strings and bytes
- strings are just aliases for bytes
- strings are (generally?) immutable
examples/strings-bytes/strings_bytes.go
package main import "fmt" func main() { s := "some string" fmt.Printf("%v %T\n", s, s) b := []byte{65, 66, 66, 65} fmt.Printf("%s %T\n", b, b) }