2020
10-10
10-10
golang实现java uuid的序列化方法
目前只实现了java生成的固定的uuid:85bb94b8-fd4b-4e1c-8f49-3cedd49d8f28的序列化packagemainimport("encoding/binary""encoding/json""fmt""log""os""strings""time""github.com/Shopify/sarama""github.com/google/uuid")const(DATE_TIME_PATTERN=""STREAM_MAGIC=0xacedSTREAM_VERSION=5TC_STRING=0x74TC_OBJECT=0x73TC_CLASSDESC=0x72SC_SERIALIZABLE=0x02...
继续阅读 >