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