In Go, how can I convert a struct to a byte array? In Go, how can I convert a struct to a byte array? arrays arrays

In Go, how can I convert a struct to a byte array?