{{/* literals */}}
{{/* integer literal */}}
{{`https://golang.org/ref/spec#Integer_literals` | markdownify}}
{{ 42 }}
{{ 0600 }}
{{ 0xBadFace }}
{{ 1701411834604 }}
{{/* floating-point literal */}}
{{`https://golang.org/ref/spec#Floating-point_literals` | markdownify}}
{{ 0. }}
{{ 72.40 }}
{{ 072.40 }}
{{ 2.71828 }}
{{ 1.e+0 }}
{{ 6.67428e-11 }}
{{ 1E6 }}
{{ .25 }}
{{ .12345E+5 }}
{{/* imaginaryliteral */}}
{{`https://golang.org/ref/spec#Imaginary_literals` | markdownify}}
{{ 0i }}
{{ 011i }}
{{ 0.i }}
{{ 2.71828i }}
{{ 1.e+0i }}
{{ 6.67428e-11i }}
{{ 1E6i }}
{{ .25i }}
{{ .12345E+5i }}
{{/* rune literal */}}
{{`https://golang.org/ref/spec#Rune_literals` | markdownify}}
{{ 'a' }}
{{ 'ä' }}
{{ '本' }}
{{ '\t' }}
{{ '\000' }}
{{ '\007' }}
{{ '\377' }}
{{ '\x07' }}
{{ '\xff' }}
{{ '\u12e4' }}
{{ '\U00101234' }}
{{/* string literal */}}
{{`https://golang.org/ref/spec#String_literals` | markdownify}}
{{ `abc` }}
{{ `\n
\n` }}
{{ "\n" }}
{{ "\"" }} {{`" (editor fix) `}}
{{ "Hello, world!\n" }}
{{ "日本語" }}
{{ "\u65e5本\U00008a9e" }}
{{ "\xff\U0001f609" }}
{{`all the same`}}
{{ "日本語" }}
{{ `日本語` }}
{{ "\u65e5\u672c\u8a9e" }}
{{ "\U000065e5\U0000672c\U00008a9e" }}
{{ "\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e" }}
{{/* boolean */}}
{{`https://golang.org/ref/spec#Boolean_types` | markdownify}}
{{ true }}
{{ false }}
{{`
The default type of an untyped constant is bool, rune, int, float64,
complex128 or string respectively
`}}