Golang uuid 生成工具

工具安装

go get github.com/google/uuid

使用演示

package main

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

func main() {
	uuid := uuid.NewString()
	fmt.Printf("uuid: %v\n", uuid)
}