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 sample usage to doc.go #49

Closed kingishb closed 3 years ago

kingishb commented 5 years ago

Hello! It took me a bit of time to figure out how to make a UUID glancing at the documentation because uuid.New() is listed as a subfunction of type UUID. I thought it might be nice to put a hello world example in the godoc.

bconway commented 3 years ago

This (or something like it) would be very helpful, can it be merged?

ilyabrin commented 3 years ago

@bconway examples are always useful for the getting started 👍