Some common terminology used in Programming and specifically in Go.
String literals - string constant formed by concatenating a set of chars
- Raw string literal -- set of chars enclosed between back quotes. Escape chars also ignored
- Interpreted string literal -- set of chars enclosed between double quotes
- Rune literal -- single char enclosed in single quotes like 'a' and '1'
- In Go, a rune is an alias for int32 and represents a single Unicode code point.
- A rune literal is a character enclosed in single quotes, like 'a', '1' etc.
- It is used to define a single Unicode character in a program.
- var letter rune = 'a' // Represents the character 'a'
- var number rune = '1' // Represents the character '1'
No comments:
Post a Comment