Exemple #1
0
func main() {
	for i := 0; i < 10; i++ {
		println(uuid.New())
	}
}
Exemple #2
0
// AddUuid
func AddModelUuid(model interface{}) interface{} {
	id := uuid.New()
	logger.Tracef("Add new UUID: %v", id)
	return mcore.SetFieldValue(model, "Id", id)
}