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:
committed by
Alexander Medvednikov
parent
571410dd48
commit
668646f8f9
9
examples/rune.v
Normal file
9
examples/rune.v
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user