// Uint64 to slice of bytes by big endian.
Uint64 to slice of bytes by big endian.
// Uint64 to slice of bytes by big endian .
func Uint64ToBytes(num uint64) []byte {
	var data = new(bytes.Buffer)
	err := binary.Write(data, binary.BigEndian, num)
	if err != nil {
		return nil
	}
	return data.Bytes()
}
func Uint64ToBytes ( num uint64 ) [ ] byte { var data = new ( bytes . Buffer ) err := binary . Write ( data , binary . BigEndian , num ) if err != nil { return nil } return data . Bytes ( ) }
Uint64 to slice of bytes by big endian.
Uint64 to slice of bytes by big endian .