How mikhaildadaev/uuid works
This is a small Go UUID library, not a service: callers generate, parse, validate, inspect, and convert UUID values through its package API. Core generation uses shared runtime facilities for initialization, randomness, clocks, and sequence tracking; separate adapters provide binary/JSON/text marshaling and database/sql support. The excerpts show these relationships directly, while the README documents the complete feature set, including UUID versions whose generation code was not fully excerpted.
Main entry points: core.go UUID Operations · marshal.go Serialization · sql.go SQL Adapter · uuid.go Generation Runtime
Components 5
UUID Core
- UUID Operations
core.go - Generation Runtime
uuid.go
Interoperability
- Serialization
marshal.go - SQL Adapter
sql.go
Other components
- Go Caller
Connections 6
- Go Caller → UUID Operations: generates, parses
README.md - UUID Operations → Generation Runtime: uses initialization, clocks
core.go - Go Caller → Serialization: marshals values
README.md - Go Caller → SQL Adapter: scans, binds
README.md - Serialization → UUID Operations: parses values
marshal.go - SQL Adapter → UUID Operations: parses, formats
sql.go