1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

add str function for rune

This commit is contained in:
musou1500
2019-07-02 00:36:23 +09:00
committed by Alexander Medvednikov
parent 571410dd48
commit 668646f8f9
2 changed files with 22 additions and 3 deletions

9
examples/rune.v Normal file
View File

@@ -0,0 +1,9 @@
fn main() {
// GRINNING FACE😀 => f0 09 98 80
grinning_face := rune(0xf09f9880)
println(grinning_face)
// COMMERCIAL AT@ => 0x40
commercial_at := rune(0x40000000)
println(commercial_at)
}