From b3404a173132496fb4bc1c5cf2e467b66a44b81f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 11 Dec 2016 02:52:15 +0100 Subject: Move UUID --- advertisement.go | 2 -- uuid.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advertisement.go b/advertisement.go index 363b28f..443ae1d 100644 --- a/advertisement.go +++ b/advertisement.go @@ -32,8 +32,6 @@ type VehicleAdvMfg struct { ProductID uint16 } -type UUID [16]byte - type VehicleAdv struct { Flags uint8 TXPower uint8 diff --git a/uuid.go b/uuid.go index a70e995..74fbb39 100644 --- a/uuid.go +++ b/uuid.go @@ -6,6 +6,8 @@ import ( "strings" ) +type UUID [16]byte + func ParseUUID(s string) (UUID, error) { s = strings.Replace(s, "-", "", -1) x, err := hex.DecodeString(s) -- cgit v1.2.3