1
2
3
4
5
6
7
8
9
10
11
|
using
System;
namespace
Demo{
public
class
Test
{
public
static
void
Main()
{
Guid guid=Guid.NewGuid();
Console.WriteLine(guid);
}
}
}
|
1
2
3
4
5
6
7
|
package
com.mytest;
import
java.util.UUID;
public
class
UTest {
public
static
void
main(String[] args) {
UUID uuid = UUID.randomUUID();
System.out.println(uuid);
}}
|
1
2
3
4
5
6
7
8
|
import
(
"github.com/nu7hatch/gouuid"
"fmt"
)
func main(){
fmt
.Println(uuid.NewV4().String())
}
|