Kathryn Baldauf
60c1574cd7
Merge pull request #169 from dcormier/dc/guid
...
Allow guid package to be used on non-Windows GOOS targets
2021-10-25 17:23:25 -07:00
Thomas
d4c02ad896
Add missing build constraints
2021-02-10 23:54:19 +00:00
Thomas Way
9d8277341f
Add build guards for all Windows imports
2021-01-21 23:24:01 +00:00
Daniel Cormier
892f7849c3
Allow guid package to be used on non-Windows GOOS targets
...
`golang.org/x/sys/windows.GUID` is currently only available to builds
targeting `GOOS=windows` (see golang/go#36485 ). This change makes it
so `windows` builds continue to use `golang.org/x/sys/windows.GUID`,
while non-`windows` builds get a different structure that has all
the same fields and methods.
2020-03-04 09:29:26 -05:00
Kevin Parsons
177d2ec7ea
guid: Add V5 GUID support
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-07-10 15:08:22 -07:00
Kevin Parsons
c5294c98c0
guid: Improve version and variant handling
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-07-10 15:03:44 -07:00
Kevin Parsons
3dac69f6ea
pkg/guid: Switch from json.Marshaler to encoding.TextMarshaler
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-05-13 14:31:21 -07:00
Kevin Parsons
b940a6f7ae
pkg/guid: Improve error messages
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-05-13 14:30:09 -07:00
Kevin Parsons
2dc6637e2c
pkg/guid: Support big-endian and Windows encodings
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-05-13 14:28:49 -07:00
Kevin Parsons
6dd84a2574
pkg/guid: Add helper functions to tests
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-05-13 14:25:53 -07:00
Kevin Parsons
1197d54849
pkg/guid: Add variant and version support
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-05-13 14:22:42 -07:00
Kevin Parsons
7185c03f75
pkg/guid: Prefer passing GUID by value
...
Signed-off-by: Kevin Parsons <kevpar@microsoft.com >
2019-05-08 15:52:52 -07:00
Kevin Parsons
88da7d1491
Add guid package
2019-04-01 16:07:14 -07:00