Add support for printing slices via print/println

With help from @aykevl.
This commit is contained in:
Federico G. Schwindt
2022-06-22 05:21:56 -06:00
committed by Ron Evans
parent 5fdb894760
commit ea36fea5a9
4 changed files with 33 additions and 8 deletions
+4
View File
@@ -45,4 +45,8 @@ func main() {
// print bool
println(true, false)
// print slice
println([]byte(nil))
println([]int(nil))
}
+2
View File
@@ -21,3 +21,5 @@ a b c
(0:nil)
map[2]
true false
[0/0]nil
[0/0]nil