mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
Add support for printing slices via print/println
With help from @aykevl.
This commit is contained in:
committed by
Ron Evans
parent
5fdb894760
commit
ea36fea5a9
Vendored
+4
@@ -45,4 +45,8 @@ func main() {
|
||||
|
||||
// print bool
|
||||
println(true, false)
|
||||
|
||||
// print slice
|
||||
println([]byte(nil))
|
||||
println([]int(nil))
|
||||
}
|
||||
|
||||
Vendored
+2
@@ -21,3 +21,5 @@ a b c
|
||||
(0:nil)
|
||||
map[2]
|
||||
true false
|
||||
[0/0]nil
|
||||
[0/0]nil
|
||||
|
||||
Reference in New Issue
Block a user