Last modified: September 20, 2021
Notes on numbers and strings in go.
Types of Numbers
Types of Strings
- single quote
'你'- this is only used to declare a byte or a rune. There can only be one character inside here.
- double quote
"this is a string"- string literal. Respects escapings, like
\nfor new line.
`this is a raw string literal `