uuid guide

⸺ by Charles Iliya Krempeaux

This guide will help you gain a deeper understanding of s.

⚠️ Note that I feel that there are better conventions for creating distributed unique IDs than UUIDs (for reasons that will hopefully become more obvious as you continue to read). But nevertheless, you will very likely come across UUIDs, and it would be to your benefit to understand them.

Table of Contents

Overview

1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.

Questions

12.

Programming

13. Generating 14. 15. 16. uuid.Construct() 17. 18. fmt.Stringer 19. 20. [uuid.Random() uuid.Random() 21.

Project

22.

Overview

23. 24. 25. 26.

Questions

27.

Programming

28. uuid.ChronoRandom() 29.

Project

30. uuid Program (chrono random)

Overview

31.

Programming

32. encoding.BinaryMarshaler 33. Unit Tests for encoding.BinaryMarshaler 34. encoding.BinaryUnmarshaler 35. Unit Tests for encoding.BinaryUnmarshaler

Project

36. uuid Program (binary)

Overview

37. Binary-To-Text Encoding

Programming

38. encoding.TextMarshaler 39. Unit Tests for encoding.Textmarshaler 40. encoding.TextUnmarshaler 41. Unit Tests for encoding.TextUnmarshaler

Project

42. JSON

Overview

43. Parsing

Programming

44. uuid.Parse() 45. Unit Tests for uuid.Parse()

Project

46. uuid Program

## Postamble

The purpose of this guide is to keep this knowledge alive.

To pass on an understanding sufficient for others, such as yourself, to be able to implement this themselves from-scratch — without making use of any previous implementations of it.

And to get others, such as yourself, to implement this themselves.

I think it is important for our culture that, as long as this is useful, not only does this (and other) knowledge stay as living knowledge, but that the ability to and practice of re-creating it again, without making use of any previous implementations of it, stays alive too.

To keep this alive, each generation needs to re-create it themselves, and use that implementation.

Create your own implementation of this. Use your implementation.

This is how we can create a culture around this and other knowledge. This is how we can create a tradition around this and other knowledge. This is how we can create an institution around this and other knowledge.