google / uuid

Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

AGMETEOR opened this issue · comments

package main

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

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

Output

00000000-0000-0000-0000-000000000000

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