how to convert go's type from uint8 to unit32?
Just code:
package main
import (
"fmt"
)
func main() {
uInt8 := []uint8{0,1,2,3}
var uInt32 uint32
uInt32 = uint32(uInt8)
fmt.Printf("%v to %v
", uInt8, uInt32)
}
~>6g test.go && 6l -o test test.6 && ./test
test.go:10: cannot convert uInt8 (type []uint8) to type uint32