package tool import ( "github.com/gofrs/uuid" ) func NewV4() (string, error) { uid, err := uuid.NewV4() if err != nil { return "", err } return uid.String(), nil }