I have a function which receives a []byte but I what I have is an int, what is the best way to go about this conversion?
[]byte
int
err = a.Wr
What's wrong with converting it to a string?
[]byte(fmt.Sprintf("%d", myint))