Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,6 +1,14 @@
|
|||
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
|
||||
ch := 'z' // ch is type rune (an int32 type)
|
||||
var r rune = 'z' // r is type rune
|
||||
var b byte = 'z' // b is type byte (an uint8 type)
|
||||
b2 := byte('z') // equivalent to b
|
||||
const c byte = 'z' // c is now a "typed constant"
|
||||
const z = 'z' // z is untyped, it may be freely assigned or used in any integer expression
|
||||
b = z
|
||||
r = z
|
||||
ch2 := z // equivalent to ch (type rune)
|
||||
var i int = z
|
||||
const c byte = 'z' // c is a typed constant
|
||||
b = c
|
||||
r = rune(c)
|
||||
i = int(c)
|
||||
b3 := c // equivalent to b
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue