add intArrToByteArr function for testing

This commit is contained in:
Tim Williams 2018-07-15 09:32:22 -04:00
parent 90087ff701
commit 8e0cfbc1a1

View file

@ -149,3 +149,12 @@ func handleRequest(conn net.Conn) {
// Close the connection when you're done with it. // Close the connection when you're done with it.
//conn.Close() //conn.Close()
} }
func intArrToByteArr(foo []int) []byte {
ret := []byte{}
for _, value := range foo {
ret = append(ret, byte(value))
}
return ret
}