废话不多说,直接上代码
import (
"fmt"
"github.com/satori/go.uuid"
"strings"
)
func main() {
id := uuid.NewV4()
ids := id.String()
fmt.Println(strings.ToUpper(ids))
var i int
for i=0;i<10;i++{
id := uuid.NewV4()
ids := id.String()
fmt.Println(strings.ToUpper(ids))
}
}