A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
6
Task/Literals-String/Go/literals-string-2.go
Normal file
6
Task/Literals-String/Go/literals-string-2.go
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue