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

Imported only in test by 32 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/aws/amazon-ssm-agent/agent/plugins/runscript
  9. github.com/cedmundo/hablo/api
  10. github.com/cloudwan/gohan/cli/client
  11. github.com/firmfirm/couchdb-go
  12. github.com/fjace05/couchdb-go
  13. github.com/flimzy/couchdb-go
  14. github.com/georgethomas111/couchdb-go
  15. github.com/gledger/api/db
  16. github.com/glycerine/ruid
  17. github.com/gopackage/sysfs
  18. github.com/jbking/gohan/cli/client
  19. github.com/jiwen624/uuid
  20. github.com/kkaribu/trak
  21. github.com/mickgardner/couchdb-go
  22. github.com/mickgardner/uuid
  23. github.com/mycroft/couchdb-go
  24. github.com/nati/gohan/cli/client
  25. github.com/pascience/couchdb-go
  26. github.com/rhinoman/couchdb-go
  27. github.com/rhinoman/wikifeat/users/user_service
  28. github.com/rhinoman/wikifeat/wikis/wiki_service
  29. github.com/rickyoh/uuid
  30. github.com/twitchscience/aws_utils/uploader
  31. github.com/vporoshok/uuid
  32. github.com/yokoi-h/gohan/cli/client

Test imports 2 package(s)

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