Create UUID within cuefile ? #2164
Answered
by
myitcv
subramanian0331
asked this question in
Q&A
-
i want cue to create a random uuid everytime i run it.. is it possible ? |
Beta Was this translation helpful? Give feedback.
Answered by
myitcv
Dec 2, 2022
Replies: 1 comment 2 replies
-
exec cue eval -T x.cue
-- x.cue --
import "uuid"
i: int @tag(i, var=rand)
x: uuid.FromInt(i) For more information please see See also the notes a the top of https://pkg.go.dev/cuelang.org/[email protected]/pkg/uuid regarding the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
subramanian0331
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For more information please see
cue help injection
.See also the notes a the top of https://pkg.go.dev/cuelang.org/[email protected]/pkg/uuid regarding the
uuid
package.