idempotency.go
TEXT FILE273 B · Public source code for developers, search crawlers and AI agents
1package idempotency
2import("crypto/rand";"encoding/hex")
3// NewID is for a new authorized intent; retain the returned ID across retries.
4func NewID()(string,error){var b [16]byte;if _,err:=rand.Read(b[:]);err!=nil{return "",err};return "wab-"+hex.EncodeToString(b[:]),nil}Read-only source · Select a line number to link directly · Raw download above
