Closed GuillaumeDupuy closed 11 months ago
i have ran the same test in golang :
import "fmt"
fmt.Println("Test For range")
hello := "Hello World"
for i, v := range hello {
fmt.Printf("index = %d, elem = %s\n", i, v)
}
and it outputs :
Test For range
index = 0, elem = %!s(int32=72)
index = 1, elem = %!s(int32=101)
index = 2, elem = %!s(int32=108)
index = 3, elem = %!s(int32=108)
index = 4, elem = %!s(int32=111)
index = 5, elem = %!s(int32=32)
index = 6, elem = %!s(int32=87)
index = 7, elem = %!s(int32=111)
index = 8, elem = %!s(int32=114)
index = 9, elem = %!s(int32=108)
index = 10, elem = %!s(int32=100)
so the issue is not relevant to ecla but instead the go implementation of Printf in the fmt package that is used in the underlaying ecla standard library
The code :
The result :