go uuid

Slip of the lap does not seem to go find a kind of package uuid provide built-in ...

github.com/google/uuid

Google provides a UUID-based package of language go

To a simple example

// main.go
package main

import (
    "fmt"

    "github.com/google/uuid"
)

func main() {
    guid := uuid.New()
    fmt.Println(guid)
}

Guess you like

Origin www.cnblogs.com/taadis/p/12112286.html