google / uuid

Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
BSD 3-Clause "New" or "Revised" License
5.16k stars 362 forks source link

Validate UUID without creating UUID (and underlying byte array) #137

Closed jerome-laforge closed 7 months ago

jerome-laforge commented 8 months ago

We have often received UUID as string format. We use error returns by Parse(s string) (UUID, error) but we always discard UUID.

Is it possible to add Validate(s string) error that just validate the input string without created UUID (and its underlying byte array)?