github.com/imannamdari/v2ray-core/v5@v5.0.5/main/commands/all/uuid.go (about) 1 package all 2 3 import ( 4 "fmt" 5 6 "github.com/imannamdari/v2ray-core/v5/common/uuid" 7 "github.com/imannamdari/v2ray-core/v5/main/commands/base" 8 ) 9 10 var cmdUUID = &base.Command{ 11 UsageLine: "{{.Exec}} uuid", 12 Short: "generate new UUID", 13 Long: `Generate new UUID. 14 `, 15 Run: executeUUID, 16 } 17 18 func executeUUID(cmd *base.Command, args []string) { 19 u := uuid.New() 20 fmt.Println(u.String()) 21 }