[英]Generating a GUID/UUID in KRL
KRL中是否有内置函数用于生成UUID的GUID(或类似的东西)?
I've created a module that wraps a webservice that might hold you over: UUID Module 我创建了一个模块,它包含了一个可能阻止你的Web服务: UUID模块
Use like so: 使用如下:
ruleset a8x165 {
meta {
name "UUID Module Example"
description <<
Example use of the UUID Module
>>
author "Sam Curren"
logging off
use module a8x164 alias uuid
}
dispatch {}
global {}
rule first_rule {
select when pageview ".*" setting ()
pre {
testuuid = uuid:new_uuid();
}
notify("Hello World", "This is a UUID: #{testuuid}");
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.