top

This package provides RFC4122 and DCE 1.1 UUIDs.

Use NewV1, NewV2, NewV3, NewV4, NewV5, for generating new UUIDs.

Use New([]byte), NewHex(string), and Parse(string) for creating UUIDs from existing data.

If you have a []byte you can simply cast it to the Uuid type.

The original version was from Krzysztof Kowalik <chris@nu7hat.ch> Unfortunately, that version was non compliant with RFC4122.

The package has since been redesigned.

The example code in the specification was also used as reference for design.

Copyright (C) 2016 twinj@github.com 2016 MIT licence

Imported by 289 package(s)

  1. github.com/42minutes/42minutes-server-api
  2. github.com/4eek/slumber-users
  3. github.com/ARGOeu/argo-web-api/utils/mongo
  4. github.com/AkihiroSuda/tidb/ddl
  5. github.com/AkihiroSuda/tidb/store/localstore
  6. github.com/Alienero/Rambo/util/uuid
  7. github.com/Alienero/tidb/store/localstore
  8. github.com/BnLCr/kapacitor
  9. github.com/BnLCr/kapacitor/cmd/kapacitord/run
  10. github.com/BnLCr/kapacitor/services/replay
  11. github.com/DaveBlooman/consul_watch
  12. github.com/Eazynow/go-rabbit-playground/edge
  13. github.com/Eazynow/go-rabbit-playground/microservice
  14. github.com/HOSTINGLabs/Hosting.Golang.Helpers/v1
  15. github.com/LTD-Beget/taskmgr-go
  16. github.com/LightKool/tidb/ddl
  17. github.com/LightKool/tidb/store/localstore
  18. github.com/MattConrad/noisy
  19. github.com/MattFerraro/go/src
  20. github.com/OlafRadicke/journey/database
  21. github.com/OlafRadicke/journey/server
  22. github.com/Pereiro/smtprelay
  23. github.com/PiMaker/Pioneer
  24. github.com/ProtonMail/go-apple-mobileconfig
  25. github.com/RackHD/inservice/uuid
  26. github.com/ReshNesh/pixlserv
  27. github.com/SkygearIO/skycli/commands
  28. github.com/SkygearIO/skycli/container/fakecontainer
  29. github.com/SommerEngineering/MediaProvider
  30. github.com/SommerEngineering/Ocean/Tools
  31. github.com/Tactics/Recorder
  32. github.com/Tactics/Recorder/camera
  33. github.com/TalLannder/beego-ureg/controllers
  34. github.com/TomTom86/Automezzi/controllers
  35. github.com/TomTom86/portale/controllers
  36. github.com/TwitchScience/kinsumer
  37. github.com/TwitchScience/spade/writer
  38. github.com/ZhuJingfa/gopush
  39. github.com/ZhuJingfa/gopush/apns
  40. github.com/ZhuJingfa/zooinit/cluster
  41. github.com/a3linux/amazon-ssm-agent/agent/message/service
  42. github.com/acsellers/journey/database
  43. github.com/acsellers/journey/server
  44. github.com/alaa/dfs/splitter
  45. github.com/aneshas/journey/database
  46. github.com/aneshas/journey/server
  47. github.com/antha-lang/antha/antha/anthalib/wtype
  48. github.com/app-kit/go-appkit/users
  49. github.com/app-kit/go-appkit/utils
  50. github.com/apung/acme/controllers
  51. github.com/argoeu/argo-web-api/utils/mongo
  52. github.com/aristanetworks/kapacitor
  53. github.com/aristanetworks/kapacitor/server
  54. github.com/aristanetworks/kapacitor/services/replay
  55. github.com/aristanetworks/kapacitor/services/task_store
  56. github.com/aws/amazon-ssm-agent/agent/fingerprint
  57. github.com/badoet/journey/database
  58. github.com/badoet/journey/server
  59. github.com/bakanis/acme3/controllers
  60. github.com/basmith/mkuuid
  61. github.com/billyogat/journey/database
  62. github.com/billyogat/journey/server
  63. github.com/booyaa/go-dayone
  64. github.com/bosun-monitor/annotate/web
  65. github.com/brendandixon/vhd
  66. github.com/captncraig/erroneous
  67. github.com/captncraig/erroneous/web
  68. github.com/carolove/tidb/ddl
  69. github.com/carolove/tidb/store/localstore
  70. github.com/cathalgarvey/go-termux
  71. github.com/charleskorn/weather-thingy-data-service
  72. github.com/chrissnell/chickenlittle
  73. github.com/cloudmode/roachclip-fs/mode
  74. github.com/cloudwan/gohan/extension/gohanscript/lib
  75. github.com/cloudwan/gohan/extension/otto
  76. github.com/cloudwan/gohan/schema
  77. github.com/cloudwan/gohan/server
  78. github.com/cloudwan/gohan/server/resources
  79. github.com/cloudwan/gohan/sync/etcd
  80. github.com/compose-ex/examplco2
  81. github.com/compose-ex/examplco3
  82. github.com/curt-labs/API/helpers/analytics
  83. github.com/curt-labs/GoAPI/helpers/analytics
  84. github.com/datastream/kapacitor
  85. github.com/deild/tidb/ddl
  86. github.com/deild/tidb/store/localstore
  87. github.com/dominikschulz/chickenlittle
  88. github.com/eazynow/go-rabbit-playground/edge
  89. github.com/eazynow/go-rabbit-playground/microservice
  90. github.com/ehazlett/docker-grid/node
  91. github.com/erpe/linkpong_api/persistence
  92. github.com/etherealmachine/rollcall/server
  93. github.com/fishedee/GoSample/network/sync
  94. github.com/freeformz/go-inkblot
  95. github.com/future-challenger/journey/database
  96. github.com/future-challenger/journey/server
  97. github.com/fuxiaohei/tidb/store/localstore
  98. github.com/gamelost/bot3server
  99. github.com/gamelost/bot3server/module/remindme
  100. github.com/geoah/42minutes-server-api
  101. github.com/geoah/go-inkblot
  102. github.com/geoah/golang-rest-api-server-example/domain
  103. github.com/geoah/pericles-handlers
  104. github.com/gledger/api
  105. github.com/graze/golang-service/handlers
  106. github.com/gwynantj/virtualtennis-api/service
  107. github.com/hhkbp2/tidb/ddl
  108. github.com/himyxia/tidb/ddl
  109. github.com/himyxia/tidb/store/localstore
  110. github.com/hjr265/pixlserv
  111. github.com/horrido/acme-exercise/controllers
  112. github.com/horrido/acme/controllers
  113. github.com/horrido/acme2/controllers
  114. github.com/horrido/acme3/controllers
  115. github.com/hzmangel/tidb/ddl
  116. github.com/iamxy/tidb/ddl
  117. github.com/iamxy/tidb/store/localstore
  118. github.com/influxdata/kapacitor
  119. github.com/influxdata/kapacitor/server
  120. github.com/influxdata/kapacitor/services/replay
  121. github.com/influxdata/kapacitor/services/task_store
  122. github.com/influxdb/kapacitor
  123. github.com/influxdb/kapacitor/server
  124. github.com/influxdb/kapacitor/services/replay
  125. github.com/influxdb/kapacitor/services/task_store
  126. github.com/insionng/zenpress/libraries/pingcap/tidb/ddl
  127. github.com/insionng/zenpress/libraries/pingcap/tidb/store/localstore
  128. github.com/ironbay/backend-template/core
  129. github.com/ironbay/dive/core
  130. github.com/ironbay/hog/api
  131. github.com/ironbay/hog/core
  132. github.com/ironbay/jarvis-go
  133. github.com/ironbay/mush/core
  134. github.com/ironbay/napoleon/core
  135. github.com/isuruceanu/gocqrs
  136. github.com/ivolo/analytics-go
  137. github.com/iwanbk/pixlserv
  138. github.com/jabong/florest-core/src/common/utils/http
  139. github.com/jbking/gohan/schema
  140. github.com/jbking/gohan/server
  141. github.com/jeffbmartinez/todo-persistence/task
  142. github.com/jive/postal/ipam
  143. github.com/jive/postal/postal
  144. github.com/jmartin82/mmock/vars/fakedata
  145. github.com/jmcfarlane/notable/database
  146. github.com/joakim666/wip_alerts/model
  147. github.com/jonseymour/kapacitor
  148. github.com/jpoehls/go-dayone
  149. github.com/kabukky/journey/database
  150. github.com/kabukky/journey/server
  151. github.com/kikht/taverna-dsl/t2compile
  152. github.com/kkaribu/valik
  153. github.com/kmeisthax/sakubun/core
  154. github.com/kortemy/journey/database
  155. github.com/kortemy/journey/server
  156. github.com/kurin/memory-hole/afs
  157. github.com/kurin/memory-hole/cfs
  158. github.com/kyle-wang/tidb/ddl
  159. github.com/kyle-wang/tidb/store/localstore
  160. github.com/kylebrandt/annotate/web
  161. github.com/leonkenneth/devsync-init
  162. github.com/leonkenneth/herodev-init
  163. github.com/lidemin/QuizUp/src
  164. github.com/lilwulin/rabbitfs/server
  165. github.com/liuvictory99/tidb/ddl
  166. github.com/liuvictory99/tidb/store/localstore
  167. github.com/ljagiello/kapacitor
  168. github.com/ljagiello/kapacitor/services/replay
  169. github.com/ljagiello/kapacitor/services/task_store
  170. github.com/lstern/psilibrary/server/repositories
  171. github.com/makistsantekidis/argo-web-api/utils/mongo
  172. github.com/maxnachlinger/go-test/signup
  173. github.com/maxwellhealth/goproc
  174. github.com/maylingge/tidb/ddl
  175. github.com/maylingge/tidb/store/localstore
  176. github.com/md14454/kapacitor
  177. github.com/md14454/kapacitor/services/replay
  178. github.com/mengjinglei/kapacitor
  179. github.com/mengjinglei/kapacitor/server
  180. github.com/mengjinglei/kapacitor/services/replay
  181. github.com/mengjinglei/kapacitor/services/task_store
  182. github.com/mowings/imago/work
  183. github.com/ms140569/ghost/server
  184. github.com/murrekatt/go-aws-s3-presigned-post-app-engine
  185. github.com/nanopack/portal/database
  186. github.com/nati/gohan/schema
  187. github.com/nati/gohan/server
  188. github.com/nextgearcapital/portal/database
  189. github.com/ngaut/FoundationFS/mode
  190. github.com/ninnemana/API/helpers/analytics
  191. github.com/ninnemana/analytics-go
  192. github.com/nowprovision/webhookproxy
  193. github.com/obieq/rva-devops-api
  194. github.com/obieq/rva-devops-api/models
  195. github.com/pharrisee/tidb/ddl
  196. github.com/pharrisee/tidb/store/localstore
  197. github.com/phillihq/tidb/store/localstore
  198. github.com/pingcap/pd/pd-client
  199. github.com/pingcap/tidb/ddl
  200. github.com/pingcap/tidb/store/localstore
  201. github.com/plouc/gonode/core
  202. github.com/polaris1119/luna
  203. github.com/polaris1119/middleware
  204. github.com/qianlnk/kapacitor
  205. github.com/qianlnk/kapacitor/services/replay
  206. github.com/qianlnk/kapacitor/services/task_store
  207. github.com/qiuyesuifeng/tidb/store/localstore
  208. github.com/ragros/protorpc
  209. github.com/rande/gonode/modules/base
  210. github.com/regadas/pixlserv
  211. github.com/rhinoman/go-wikit
  212. github.com/rhinoman/simple-todo/todo_service
  213. github.com/rhinoman/wikifeat/common/database
  214. github.com/rhinoman/wikifeat/wikis/wiki_service/wikit
  215. github.com/robsix/golog
  216. github.com/s-urbaniak/idfactory/signed
  217. github.com/saj1th/kinsumer
  218. github.com/seiflotfy/kapacitor
  219. github.com/seiflotfy/kapacitor/services/replay
  220. github.com/sharonjl/two-push/svr
  221. github.com/silviucm/utils
  222. github.com/sinks/uploadit
  223. github.com/skygeario/skycli/commands
  224. github.com/skygeario/skycli/container/fakecontainer
  225. github.com/skygeario/skygear-server/pkg/server/uuid
  226. github.com/snowplow/snowplow-golang-tracker/tracker
  227. github.com/sogko/slumber-users
  228. github.com/specode/journey/database
  229. github.com/specode/journey/server
  230. github.com/spenczar/kinsumer
  231. github.com/srm88/palimpsest/palimpsest
  232. github.com/stinkyfingers/analytics-go
  233. github.com/stormgbs/tidb/ddl
  234. github.com/studygolang/studygolang/src/http/controller
  235. github.com/taoh/gocelery
  236. github.com/terah/budget-planner-go/controllers
  237. github.com/terah/old-budget-planner-go/controllers
  238. github.com/tiancaiamao/pd/pd-client
  239. github.com/tiancaiamao/pd/server
  240. github.com/tiancaiamao/tidb/ddl
  241. github.com/tiancaiamao/tidb/store/localstore
  242. github.com/tomkwok/journey/database
  243. github.com/tomkwok/journey/server
  244. github.com/tonto/journey/database
  245. github.com/tonto/journey/server
  246. github.com/toophy/tidb/ddl
  247. github.com/torfuzx/journey/database
  248. github.com/torfuzx/journey/server
  249. github.com/tpjg/kapacitor
  250. github.com/tpjg/kapacitor/services/replay
  251. github.com/trevorprater/journey/database
  252. github.com/trevorprater/journey/server
  253. github.com/troyxmccall/goblahg/database
  254. github.com/troyxmccall/goblahg/server
  255. github.com/twinj/journey/database
  256. github.com/twinj/journey/server
  257. github.com/twinj/uuid/savers
  258. github.com/twitchscience/kinsumer
  259. github.com/twitchscience/spade/writer
  260. github.com/vanillahsu/tidb/store/localstore
  261. github.com/verdverm/pomopomo/api
  262. github.com/vinitkumar/journey/database
  263. github.com/vinitkumar/journey/server
  264. github.com/vporoshok/uuid/savers
  265. github.com/wcgh/tidb/ddl
  266. github.com/wcgh/tidb/store/localstore
  267. github.com/webtic/uuidtest
  268. github.com/xiocode/kapacitor
  269. github.com/xojoc/typed
  270. github.com/xwb1989/tidb/ddl
  271. github.com/xymor/activeIntel/analytics
  272. github.com/xymor/activeIntel/track
  273. github.com/yinwuzhe/tidb/ddl
  274. github.com/yokoi-h/gohan/schema
  275. github.com/yokoi-h/gohan/server
  276. github.com/yosiat/kapacitor
  277. github.com/yosiat/kapacitor/server
  278. github.com/yosiat/kapacitor/services/replay
  279. github.com/yosiat/kapacitor/services/task_store
  280. github.com/yuandunlong/tidb/ddl
  281. github.com/yuandunlong/tidb/store/localstore
  282. github.com/zaynetro/pingme
  283. github.com/zimulala/tidb/store/localstore
  284. github.com/ziyel/kapacitor
  285. github.com/ziyel/kapacitor/services/replay
  286. gopkg.in/jmartin82/mmock.v1/vars/fakedata
  287. gopkg.in/polaris1119/middleware.v1
  288. gopkg.in/snowplow/snowplow-golang-tracker.v0/tracker
  289. gopkg.in/snowplow/snowplow-golang-tracker.v1/tracker

Imported only in test by 24 package(s)

  1. github.com/PyYoshi/couchdb-go
  2. github.com/TwitchScience/aws_utils/uploader
  3. github.com/ZhuJingfa/zooinit/utility
  4. github.com/a3linux/amazon-ssm-agent/agent/message/processor
  5. github.com/a3linux/amazon-ssm-agent/agent/plugins/runcommand
  6. github.com/alexaandru/uuid
  7. github.com/aws/amazon-ssm-agent/agent/message/processor
  8. github.com/cloudwan/gohan/cli/client
  9. github.com/firmfirm/couchdb-go
  10. github.com/flimzy/couchdb-go
  11. github.com/georgethomas111/couchdb-go
  12. github.com/gledger/api/db
  13. github.com/glycerine/ruid
  14. github.com/gopackage/sysfs
  15. github.com/kkaribu/trak
  16. github.com/mickgardner/couchdb-go
  17. github.com/mickgardner/uuid
  18. github.com/pascience/couchdb-go
  19. github.com/rhinoman/couchdb-go
  20. github.com/rhinoman/wikifeat/users/user_service
  21. github.com/rhinoman/wikifeat/wikis/wiki_service
  22. github.com/rickyoh/uuid
  23. github.com/twitchscience/aws_utils/uploader
  24. github.com/vporoshok/uuid

Test imports 2 package(s)

  1. github.com/stretchr/testify/assert
  2. github.com/twinj/uuid/savers