This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1 @@
ch := 'z'

View file

@ -0,0 +1,6 @@
ch := 'z' // by default, ch takes type int32
var r rune = 'z' // reflect.TypeOf(r) still returns int32
var b byte = 'z' // reflect.TypeOf(b) returns uint8
b2 := byte('z') // equivalent to b
const c byte = 'z' // c is now a "typed constant"
b3 := c // equivalent to b

View file

@ -0,0 +1 @@
str := "z"

View file

@ -0,0 +1 @@
str := "日本語"

View file

@ -0,0 +1 @@
`\n` == "\\n"

View file

@ -0,0 +1,2 @@
`abc
def` == "abc\ndef"