You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
282 B
Bash
25 lines
282 B
Bash
5 years ago
|
$ go run string-formatting.go
|
||
|
{1 2}
|
||
|
{x:1 y:2}
|
||
|
main.point{x:1, y:2}
|
||
|
main.point
|
||
|
true
|
||
|
123
|
||
|
1110
|
||
|
!
|
||
|
1c8
|
||
|
78.900000
|
||
|
1.234000e+08
|
||
|
1.234000E+08
|
||
|
"string"
|
||
|
"\"string\""
|
||
|
6865782074686973
|
||
|
0x42135100
|
||
|
| 12| 345|
|
||
|
| 1.20| 3.45|
|
||
|
|1.20 |3.45 |
|
||
|
| foo| b|
|
||
|
|foo |b |
|
||
|
a string
|
||
|
an error
|