- Strings são sequencias de bytes.
- Imutáveis.
- Uma string é um "slice of bytes" (ou, em português, uma fatia de bytes).
- Na prática:
- %v %T
- Raw string literals
- Conversão para slice of bytes: []byte(x)
- %#U, %#x
- Go Playground: https://play.golang.org/p/dt2x1ies5b & https://play.golang.org/p/PpDnspiyA_7
- https://blog.golang.org/strings
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.