8000 Tags · marcuscaisey/uuid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: marcuscaisey/uuid

Tags

v4.2.0

Toggle v4.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
adding IsNil method to uuid (gofrs#95)

* adding IsZero method to uuid

* rename isZero to IsNil

v4.1.0

Toggle v4.1.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
4.1.0

* initial implementation of UUIDv6 and UUIDv7 based on RFC Draft Rev 2
[\gofrs#93](gofrs#93) ([@theckman](https://github.com/theckman))

v4.0.0

Toggle v4.0.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request gofrs#71 from gofrs/no_v2

Remove support for DCE Security UUID (V2) generation

v3.3.0

Toggle v3.3.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
3.3.0

- the `UUID` type now satisfied fmt.Formatter; see the `.Format()` method
  docs for more info. Contributed by Dylan Bourque (@dylan-bourque) in gofrs#72.

v3.4.0

Toggle v3.4.0's commit message
Merge branch 'coder543-master'

Signed-off-by: Andrei Tudor Călin <mail@acln.ro>

v3.2.0

Toggle v3.2.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
3.2.0

Remove support for the experimental Go Modules feature due to issues supporting
both `dep` and modules, amongst other concerns.

Please see gofrs#61, gofrs#66, and gofrs#67 for more info.

v3.1.2

Toggle v3.1.2's commit message

Verified

This tag was signed with the committer’s verified signature.
acln0 Andrei Tudor Călin
v3.1.2

This release improves the interoperability of package uuid with
ORMs such as gorm, per PR gofrs#58. Thanks to Jun Jie Nan (@nanjj) for
the contribution.

v3.1.1

Toggle v3.1.1's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
3.1.1: UUIDs for Workgroups

Added `go.mod` file.

v3.1.0

Toggle v3.1.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
3.1.0

This release includes new functionality (PR gofrs#31) to help consumers extract a
time.Time value out of a Version 1 UUID.

UUIDs have their own internal timestamp, which is a counter of 100ns increments
since the start of the Gregorian Calendar (00:00:00 UTC on 15 Oct, 1582). To
represent that a new `Timestamp` type was added, with a `Time()` method used to
convert the timestamp value to a `time.Time` value.

To extract the timestamp from a Version 1 UUID, a new package
function (`TimestampFromV1`) was added to extract a `Timestamp` out of a UUID.
If it's not a V1 UUID it returns an error.

Big thanks to Ron Kuris (@rkuris) for this contribution!

v3.0.0

Toggle v3.0.0's commit message

Verified

This tag was signed with the committer’s verified signature. The key has expired.
theckman Tim Heckman
3.0.0

v3.0.0 denotes the first major change by The Gofrs, and encompasses feature
requests / PRs that had been opened against the original project. This version
includes the following *_breaking_* changes:

- update the `sql.NullUUID` type to support both the `json.Marshaler` and
  `json.Unmarshaler` interfaces, which I'll provide more details on later. (gofrs#38)
- remove the `Equal` function from the package, as the UUID type is an array
  type and so you can use `==` directly for comparisons. (gofrs#36 gofrs#39)

This version also exposes the internal UUID generator, with constructors, so
that consumers can provide their own HWAddrFunc to get the hardware address of
the node. This can be used by consumers who want to randomize the MAC address in
a V1 UUID. (gofrs#42)

In regards to the JSON change, the `sql.NullUUID` type is one that's used with
the `database/sql` package to support columns that can contain UUIDs or a NULL
value. This means it's a struct with a `UUID` and `Valid` field, so previously a
`sql.NullUUID` would marshal to JSON like so:

```JSON
{
  "uuid": {
    "uuid": "3bdef553-9b6a-4620-8a5f-b94bf22a2520",
    "valid": true
  }
}
```

By implementing the right interfaces from the JSON package, it'll now marshal
like so:

```JSON
{
  "uuid": "3bdef553-9b6a-4620-8a5f-b94bf22a2520"
}
```
0