parsing error syntax with []byte using strconv.Atoi : I'm currently trying to convert a byte array to an int so i proceed like that :

    var d = []byte{0x01}
    val, err := strconv.Atoi(string(d))

and i get this error :

> strconv.Atoi: parsing "\x01": invalid syntax

I've tried a lot of way without success yet..

Any one got an idea ?


