The uuid package generates UUIDs based on RFC 4122: Time-Based UUID
go get -u github.com/m7shapan/uuid
package main
import (
"fmt"
"github.com/m7shapan/uuid"
)
func main() {
fmt.Println(uuid.NewUUID()) // 2bf08894-47a3978-bbdd8c85-70d16847
}
The uuid package generates UUIDs based on RFC 4122: Time-Based UUID
go get -u github.com/m7shapan/uuid
package main
import (
"fmt"
"github.com/m7shapan/uuid"
)
func main() {
fmt.Println(uuid.NewUUID()) // 2bf08894-47a3978-bbdd8c85-70d16847
}