package cmd import ( "encoding/binary" ) func u32tob(u uint32) []byte { buf := make([]byte, 4) binary.BigEndian.PutUint32(buf, u) return buf }