生成UUID

package main

import (
   "fmt"
   "github.com/satori/go.uuid"
)

func main() {
   id := uuid.NewV4()
   fmt.Printf("UUID => %+v \n", id) // UUID => 8164fc78-3076-4354-9353-71258d40c05k
}

Copyright © 2024 码农人生. All Rights Reserved