Skip to content

Releases: uuid6/uuid6go-proto

Bugfixing

11 Aug 22:44
Compare
Choose a tag to compare

Values were not saved properly. Now fixed, with this update, generator is actually working and operational.

Parser is available

11 Aug 19:24
Compare
Choose a tag to compare

Now you can parse values of the GUID back. Parser is a method on a generator. You would have to set generator values, before using the parser.

Needless to say, if you want to get some meaningful values back from GUID you would have to set the same settings on a generator.

	var test UUIDv7Generator
	test.SubsecondPrecisionLength = 16
	test.NodePrecisionLength = 4
	test.Node = 15
	test.CounterPrecisionLength = 8
	guid := test.Next()
	test.Parse(&guid)
	ps, c, n := test.Parse(&guid)
	fmt.Print("Precision nanosecond:", ps, "Counter:", c, "Node value:", n)

Initial release

26 Jul 20:55
c07d453
Compare
Choose a tag to compare

Initial release of the generator. Properly generates UUIDs, compatible with version 7 of the standard.