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.26k stars 362 forks source link

add MustParse(), which returns an UUID or panics #26

Closed martinlindhe closed 6 years ago

martinlindhe commented 6 years ago

Same usability as with https://golang.org/pkg/regexp/#MustCompile

var someUUID = uuid.MustParse("f47ac10b-58cc-0372-8567-0e02b2c3d479")