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

Parse method on type UUID is generating a bunch of zeros in the UUID #51

Closed AGMETEOR closed 4 years ago

AGMETEOR commented 4 years ago
package main

import (
    "fmt"
    "github.com/google/uuid"
)

func main() {
    k, _ := uuid.Parse("A string")
    fmt.Println(k)
}

Output

00000000-0000-0000-0000-000000000000

AGMETEOR commented 4 years ago

Apologies... I think I get how this works now. It's supposed to parse a uuid string and return type UUID